/* ============================================================
   DocBag.ai — Login page
============================================================ */

body.login-page {
    background: linear-gradient(135deg, #0E1A2C 0%, #162739 55%, #0E1A2C 100%);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.login-logo img {
    width: 78px;
    height: 78px;
    margin: 0 auto;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15,149,144,0.35);
}

.login-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}
.login-title .accent { color: #1eaaa3; }

.login-subtitle {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 32px 26px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 4px 16px rgba(0,0,0,0.15);
}

.login-card .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5d6c7a;
    margin-bottom: 7px;
}

.login-card .form-control {
    padding: 12px 14px;
    font-size: 1rem;
    border-color: #e2e7eb;
    border-radius: 10px;
    min-height: 46px;
}

.login-card .form-control:focus {
    border-color: #0F9590;
    box-shadow: 0 0 0 3px rgba(15,149,144,0.12);
}

.login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #5d6c7a;
    cursor: pointer;
    user-select: none;
}

.remember-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0F9590;
    cursor: pointer;
}

.forgot-link {
    font-size: 0.875rem;
    color: #0F9590;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}
.forgot-link:hover { color: #0c7a76; }

.btn-login {
    width: 100%;
    padding: 14px;
    background: #0F9590;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 4px;
    min-height: 50px;
    box-shadow: 0 4px 12px rgba(15,149,144,0.3);
}
.btn-login:hover  { background: #0c7a76; }
.btn-login:active { transform: scale(0.99); }

.login-footer {
    text-align: center;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #e2e7eb;
    font-size: 0.8rem;
    color: #94a3b1;
    line-height: 1.5;
}
.login-footer a { color: #0F9590; text-decoration: none; }
.login-footer a:hover { color: #0c7a76; }

/* Forgot / reset password helper text + delivery notice */
.login-intro {
    text-align: center;
    font-size: 0.9rem;
    color: #5d6c7a;
    margin: 0 0 18px;
    line-height: 1.5;
}
.login-spam-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    margin-top: 12px;
    background: #fef3de;
    color: #7a5311;
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.5;
}
.login-spam-notice svg { flex-shrink: 0; margin-top: 1px; }

.login-card .alert {
    margin-bottom: 16px;
    font-size: 0.875rem;
    border-radius: 8px;
    padding: 11px 14px;
}

.login-powered {
    text-align: center;
    margin-top: 24px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
}

@media (max-width: 480px) {
    .login-card { padding: 24px 20px 20px; border-radius: 14px; }
    .login-actions { flex-direction: column; align-items: flex-start; }
    .login-title { font-size: 1.35rem; }
    .login-logo img { width: 68px; height: 68px; }
}

@supports (padding: env(safe-area-inset-bottom)) {
    body.login-page {
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
        padding-top:    calc(24px + env(safe-area-inset-top));
    }
}
