/* ── Login V2 ─────────────────── */

.loginv2-page {
    height: 100vh;
    background: #f5f7fa;
    margin: 0;
    padding: 0 !important;
    overflow: auto !important;
}

/* ---- Left branding panel ---- */
.loginv2-brand {
    background: linear-gradient(135deg, #0a1628 0%, #0d2847 40%, #0f3060 100%);
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.loginv2-brand::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(3, 155, 229, 0.08);
    pointer-events: none;
}
.loginv2-brand::after {
    content: '';
    position: absolute;
    bottom: -15%; left: -8%;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(3, 155, 229, 0.06);
    pointer-events: none;
}
.loginv2-brand-content {
    position: relative;
    z-index: 1;
    max-width: 400px;
    width: 100%;
}
.loginv2-brand-logo { height: 32px; margin-bottom: 20px; }
.loginv2-brand-headline {
    font-size: 26px; font-weight: 700; color: #fff;
    line-height: 1.3; margin: 0 0 10px; letter-spacing: -0.3px;
}
.loginv2-brand-sub {
    font-size: 13px; color: rgba(255,255,255,0.6);
    line-height: 1.5; margin: 0 0 24px;
}

/* Feature cards */
.loginv2-brand-features { display: flex; flex-direction: column; gap: 12px; }
.loginv2-feature { display: flex; align-items: flex-start; gap: 12px; }
.loginv2-feature > .material-icons {
    font-size: 20px; color: #29b6f6;
    background: rgba(41,182,246,0.12);
    border-radius: 8px; padding: 7px;
    flex-shrink: 0; line-height: 1;
}
.loginv2-feature > div { display: flex; flex-direction: column; gap: 1px; }
.loginv2-feature-title { font-size: 13px; font-weight: 600; color: #fff; }
.loginv2-feature-desc { font-size: 12px; color: rgba(255,255,255,0.45); }

/* Announcements */
.loginv2-announcements { margin-top: 20px; position: relative; z-index: 1; }
.loginv2-announce-card {
    display: none;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; padding: 12px 14px;
    animation: loginv2FadeIn 0.4s ease;
}
.loginv2-announce-card.loginv2-announce-active { display: block; }
@keyframes loginv2FadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.loginv2-announce-tag {
    display: inline-block; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: #0a1628; background: #29b6f6;
    border-radius: 4px; padding: 2px 8px; margin-bottom: 6px;
}
.loginv2-announce-text { font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.5; }
.loginv2-announce-dots { display: flex; gap: 6px; margin-top: 10px; justify-content: center; }
.loginv2-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,0.2); cursor: pointer;
    transition: background 0.2s ease;
}
.loginv2-dot.loginv2-dot-active { background: #29b6f6; }

/* Brand footer */
.loginv2-brand-footer { margin-top: auto; padding-top: 16px; text-align: center; z-index: 1; position: relative; }
.loginv2-brand-footer span { font-size: 11px; color: rgba(255,255,255,0.25); letter-spacing: 0.5px; }

/* ---- Right form panel ---- */
.loginv2-form-panel {
    background: #fff;
    padding: 32px 40px;
    overflow: hidden;
    position: relative;
}
.loginv2-form-wrapper { max-width: 380px !important; width: 100%; margin-top: auto; margin-bottom: auto; }
.loginv2-form-header { margin-bottom: 28px; }
.loginv2-form-logo { height: 32px; margin-bottom: 20px; }
.loginv2-form-title { font-size: 22px; font-weight: 700; color: #1a237e; margin: 0 0 6px; }
.loginv2-form-subtitle { font-size: 13px; color: #90a4ae; margin: 0; }

/* Angular Material input overrides */
.loginv2-md-field { margin: 8px 0 !important; }
.loginv2-md-field md-icon { color: #b0bec5 !important; }
.loginv2-md-field.md-input-focused md-icon { color: #039be5 !important; }
.loginv2-md-field.md-input-invalid md-icon { color: #dd2c00 !important; }
.loginv2-md-field label { font-size: 14px !important; color: #90a4ae !important; }
.loginv2-md-field.md-input-focused label { color: #039be5 !important; }
.loginv2-md-field input { font-size: 15px !important; color: #263238 !important; }
.loginv2-md-field .md-errors-spacer { min-height: 0 !important; }
.loginv2-md-field .md-input-message-animation { font-size: 12px !important; }

/* Forgot password */
.loginv2-actions-row { display: flex; justify-content: flex-end; margin: 4px 0 8px; }
.loginv2-forgot { font-size: 13px; color: #039be5; text-decoration: none; font-weight: 500; }
.loginv2-forgot:hover { color: #0277bd; text-decoration: underline; }

/* Submit button */
.loginv2-submit.md-button {
    width: 100% !important;
    margin: 12px 0 0 !important;
    padding: 0 24px !important;
    min-height: 44px !important;
    height: 44px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #039be5 0%, #0277bd 100%) !important;
    color: #fff !important;
    text-transform: none !important;
    line-height: 44px !important;
    box-shadow: 0 2px 8px rgba(3,155,229,0.25) !important;
    border: none !important;
}
.loginv2-submit.md-button:hover:not([disabled]) {
    background: linear-gradient(135deg, #0288d1 0%, #01579b 100%) !important;
    box-shadow: 0 4px 16px rgba(3,155,229,0.4) !important;
}
.loginv2-submit.md-button[disabled] {
    opacity: 0.7 !important;
    box-shadow: none !important;
}
.loginv2-submit .material-icons { font-size: 18px; margin-left: 6px; vertical-align: middle; }

/* OTP section */
.loginv2-otp-container { text-align: center; padding: 16px 0; }
.loginv2-otp-timer { font-size: 13px; color: #78909c; margin-top: 12px; }
.loginv2-resend { text-align: center; }
.loginv2-resend a { font-size: 13px; color: #039be5; text-decoration: none; font-weight: 500; }
.loginv2-resend a:hover { text-decoration: underline; }

/* Form footer */
.loginv2-form-footer {
    flex-shrink: 0;
    padding: 16px 0 8px;
    text-align: center;
}
.loginv2-form-footer span { font-size: 11px; color: #cfd8dc; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* ---- iPad landscape / small desktop (960–1279px) ----
   Two panels, lighter brand content, no announcements */
@media (max-width: 1279px) {
    .loginv2-brand { padding: 32px; }
    .loginv2-brand-content { max-width: 300px; }
    .loginv2-brand-headline { font-size: 22px; }
    .loginv2-brand-sub { font-size: 12px; margin-bottom: 14px; }
    .loginv2-feature-desc { display: none; }
    .loginv2-announcements { display: none; }
}

/* ---- iPad portrait (600–959px) ----
   Thin brand strip on top (horizontal), form fills rest */
@media (max-width: 959px) {
    .loginv2-page {
        flex-direction: column !important;
    }
    .loginv2-brand {
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 24px !important;
        align-items: flex-start !important;
    }
    .loginv2-brand::before,
    .loginv2-brand::after { display: none; }
    .loginv2-brand-content {
        max-width: 100%;
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 14px;
    }
    .loginv2-brand-logo { height: 22px; margin-bottom: 0; flex-shrink: 0; }
    .loginv2-brand-headline {
        font-size: 14px; font-weight: 600; margin: 0;
        line-height: 1.3;
    }
    .loginv2-brand-headline br { display: none; }
    .loginv2-brand-sub { display: none !important; }
    .loginv2-brand-features { display: none !important; }
    .loginv2-announcements { display: none !important; }
    .loginv2-brand-footer { display: none !important; }

    .loginv2-form-panel {
        flex: 1 1 0% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 24px 32px;
    }
    .loginv2-form-wrapper { max-width: 100% !important; margin: 0 auto; }
    .loginv2-form-title { font-size: 20px; }
}

/* ---- Mobile (<600px) ----
   No brand panel, form only, centered */
@media (max-width: 599px) {
    .loginv2-brand { display: none !important; }
    .loginv2-form-panel {
        flex: 1 1 0% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 20px;
    }
    .loginv2-form-wrapper { max-width: 100% !important; width: 100%; margin: 0 auto; }
    .loginv2-form-header { margin-bottom: 20px; }
    .loginv2-form-logo { height: 28px; margin-bottom: 16px; }
    .loginv2-form-title { font-size: 20px; }
    .loginv2-form-subtitle { font-size: 12px; }
}
