.alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    margin-bottom: 16px;
    border-radius: 10px;
    font-size: 13.5px;
}

.error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c2bd;
}

/* ===================== SINGLE CENTERED CARD ===================== */
.login-page-bg {
    min-height: 100vh;
    background: #f4f6f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    background: #fff;
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e7ece9;
    box-shadow: 0 20px 50px rgba(6, 78, 59, 0.12);
}

.login-card-top-accent {
    height: 5px;
    background: linear-gradient(90deg, #064e3b 0%, #0a6b4f 65%, #f5c445 100%);
}

.login-card-body {
    padding: 44px 38px;
}

.login-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-title {
    text-align: center;
    font-size: 25px;
    margin-bottom: 6px;
    color: #0f241c;
}

.login-sub {
    text-align: center;
    color: #7c8c86;
    font-size: 13.5px;
    margin-bottom: 30px;
}

/* Bordered, white inputs */
.input-icon-group {
    position: relative;
    margin-top: 16px;
}

.input-icon-group svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8aa39a;
    pointer-events: none;
}

.input-icon-group input {
    width: 100%;
    height: 48px;
    padding-left: 46px;
    padding-right: 16px;
    background: #fff;
    border: 1.5px solid #dde5e1;
    border-radius: 12px;
    font-size: 14px;
    color: #16332a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-icon-group input::placeholder {
    color: #a3b0ab;
}

.input-icon-group input:focus {
    outline: none;
    border-color: #0a6b4f;
    box-shadow: 0 0 0 4px rgba(10, 107, 79, 0.12);
}

.toggle-password {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: #8aa39a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.toggle-password:hover {
    background: #eef4f1;
    color: #0a6b4f;
}

.toggle-password.is-visible {
    color: #0a6b4f;
}

.input-icon-group:has(.toggle-password) input {
    padding-right: 44px;
}

.login-card-body .forms {
    margin-top: 24px;
}

/* Solid green CTA — scoped to this page's card only */
.login-card-body .forms button {
    background: #0a6b4f;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(10, 107, 79, 0.28);
}

.login-card-body .forms button:hover {
    background: #064e3b;
}

.login-card-body .forms button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    background: #0a6b4f;
}

.auth-links {
    text-align: center;
    margin-top: 22px;
}

.auth-links p {
    font-size: 13.5px;
    color: #7c8c86;
    margin-top: 8px;
}

.auth-links a {
    color: #0a6b4f;
    font-weight: 700;
}

@media (max-width: 480px) {
    .login-card-body {
        padding: 34px 24px;
    }
}

/* ===================== INSTALL APP PROMPT ===================== */
.install-app-btn {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    margin-top: 14px;
    background: #fff;
    color: #0a6b4f;
    border: 1.5px solid #cfe2da;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.install-app-btn.is-visible {
    display: flex;
}

.install-app-btn:hover {
    background: #eef4f1;
    border-color: #0a6b4f;
}
