/* ============================================================
   OnPointe Risk Analyzer — Glass Card Login Styles
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.login-page {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 30%, #4a6e8a 70%, #6b9dbf 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

/* Decorative background circles */
body.login-page::before {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(107,157,191,0.12);
    top: -200px;
    right: -150px;
    pointer-events: none;
}

body.login-page::after {
    content: '';
    position: fixed;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: rgba(74,110,138,0.08);
    bottom: -150px;
    left: -100px;
    pointer-events: none;
}

/* ============================================================
   Glass Card
   ============================================================ */
.login-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 40px 40px 36px;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05) inset;
}

/* ============================================================
   Card Header — Logo + Tagline
   ============================================================ */
.card-header {
    text-align: center;
    margin-bottom: 32px;
    padding-top: 12px;
    background: none;
    border: none;
}

.card-header .logo-wrap {
    margin-bottom: 20px;
}

.card-header .logo-wrap img {
    width: 260px;
    height: auto;
}

.card-header .tagline {
    color: rgba(255,255,255,0.6);
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
}

/* ============================================================
   Alert Styles (session flash messages)
   ============================================================ */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-top: 1px;
}

.alert-danger {
    background: rgba(252, 129, 129, 0.15);
    border: 1px solid rgba(252, 129, 129, 0.3);
    color: #fed7d7;
}
.alert-danger .alert-icon {
    background: rgba(252, 129, 129, 0.3);
    color: #fff;
}

.alert-info {
    background: rgba(99, 179, 237, 0.15);
    border: 1px solid rgba(99, 179, 237, 0.3);
    color: #bee3f8;
}
.alert-info .alert-icon {
    background: rgba(99, 179, 237, 0.3);
    color: #fff;
}

.alert-success {
    background: rgba(72, 187, 120, 0.15);
    border: 1px solid rgba(72, 187, 120, 0.3);
    color: #c6f6d5;
}
.alert-success .alert-icon {
    background: rgba(72, 187, 120, 0.3);
    color: #fff;
}

.alert-warning {
    background: rgba(246, 173, 85, 0.15);
    border: 1px solid rgba(246, 173, 85, 0.3);
    color: #fefcbf;
}
.alert-warning .alert-icon {
    background: rgba(246, 173, 85, 0.3);
    color: #fff;
}

/* ============================================================
   Field-Level Errors
   ============================================================ */
.field-error {
    font-size: 12px;
    color: #fc8181;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.field-error svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.input-error {
    border-color: rgba(252, 129, 129, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(252, 129, 129, 0.1) !important;
}

/* ============================================================
   Maintenance Mode Banner
   ============================================================ */
.maintenance-banner {
    background: rgba(246, 173, 85, 0.12);
    border: 1px solid rgba(246, 173, 85, 0.25);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 24px;
    text-align: center;
}

.maintenance-banner .maint-icon {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

.maintenance-banner .maint-title {
    color: #f6ad55;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.maintenance-banner .maint-message {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    line-height: 1.5;
}

/* ============================================================
   Form Styles
   ============================================================ */
.login-form .field {
    margin-bottom: 18px;
}

.login-form label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    outline: none;
    background: rgba(255,255,255,0.07);
    color: #fff;
    transition: all 0.25s;
}

.login-form input::placeholder {
    color: rgba(255,255,255,0.3);
}

.login-form input:focus {
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.11);
}

.login-form .forgot {
    text-align: right;
    margin-bottom: 24px;
}

.login-form .forgot a {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.login-form .forgot a:hover {
    color: rgba(255,255,255,0.85);
}

.login-form .btn-login {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #1a202c;
    background: linear-gradient(135deg, #ffffff 0%, #e8ecf0 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    letter-spacing: 0.3px;
}

.login-form .btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
}

.login-form .btn-login:active {
    transform: translateY(0);
}

/* ============================================================
   Card Footer
   ============================================================ */
.card-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: none;
}

.card-footer span {
    color: rgba(255,255,255,0.45);
    font-size: 13px;
}

.card-footer a {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    margin-left: 4px;
    padding-bottom: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: all 0.2s;
}

.card-footer a:hover {
    border-bottom-color: rgba(255,255,255,0.7);
}

/* ============================================================
   Page Title / Subtitle (password reset pages)
   ============================================================ */
.page-title {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
}

.page-subtitle {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 520px) {
    body.login-page {
        padding: 20px 16px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .login-card {
        padding: 36px 24px 32px;
        border-radius: 16px;
    }

    .card-header .logo-wrap img { width: 210px; }

    .card-header .tagline { font-size: 12px; }

    .login-form input[type="email"],
    .login-form input[type="password"],
    .login-form input[type="text"] {
        padding: 12px 14px;
        font-size: 14px;
    }

    .login-form .btn-login {
        padding: 13px;
    }
}
