﻿/* ========== CSS VARIABLES ========== */
:root {
    --brand-primary: #2b4fa8;
    --brand-primary-light: #1e3d8f;
    --brand-primary-dark: #164a8f;
    --brand-accent: #7ec845;
    --brand-accent-light: #95d85f;
    --panel-gradient-start: #eef7ff;
    --panel-gradient-mid: #dceeff;
    --panel-gradient-end: #d0e7fa;
    --panel-text-primary: #0c1f3d;
    --panel-text-secondary: #1a3355;
    --panel-accent: #1e5ba8;
    --panel-highlight: #7ec845;
    --form-bg: #ffffff;
    --form-bg-subtle: #f4f8fd;
    --text-primary: #1e293b;
    --text-secondary: #334155;
    --text-light: #64748b;
    --text-muted: #b0c4d8;
    --border-color: #c8d8ee;
    --success-color: #16a34a;
    --green-bright: #22c55e;
    --inp-focus: #2b4fa8;
    --link-blue: #1d4ed8;
    --info-heading: #0c1f3d;
    --info-sub: #1a3355;
    --info-body: #1e3a58;
    --feat-bdr: #c8ddf0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,.08);
    --shadow-md: 0 4px 8px rgba(0,0,0,.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,.22),0 0 0 1px rgba(255,255,255,.4);
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 22px;
    --transition-fast: 150ms cubic-bezier(0.4,0,0.2,1);
    --transition-base: 170ms ease;
}
/*@font-face {
    font-family: 'Sora';
    src: url('/fonts/Sora.woff2') format('woff2');
    font-weight: 700 900;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('/fonts/PlusJakartaSans.woff2') format('woff2');
    font-weight: 400 800;
}*/

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* ── LAYOUT ── */
.login-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #134C8F;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
}

    .login-container::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle at 15% 25%, rgba(126,200,69,.2) 0%, transparent 50%), radial-gradient(circle at 85% 75%, rgba(30,91,168,.2) 0%, transparent 50%);
        animation: gradientShift 15s ease infinite;
        pointer-events: none;
    }

@keyframes gradientShift {
    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: .8;
    }
}

/* ── CARD ── */
.login-card {
    width: 100%;
    height: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: rise .5s cubic-bezier(.22,.68,0,1.12) both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ════════════════════════════
   LEFT — INFO PANEL
════════════════════════════ */
.info-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0 32px;
    background: linear-gradient(135deg, var(--panel-gradient-start) 0%, var(--panel-gradient-mid) 50%, var(--panel-gradient-end) 100%);
}

    .info-panel::before {
        content: '';
        position: absolute;
        top: -80px;
        right: -80px;
        width: 320px;
        height: 320px;
        background: radial-gradient(circle, rgba(126,200,69,.12) 0%, transparent 70%);
        border-radius: 50%;
    }

    .info-panel::after {
        content: '';
        position: absolute;
        bottom: -120px;
        left: -120px;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(30,91,168,.08) 0%, transparent 70%);
        border-radius: 50%;
    }

.info-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-width: 750px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: clamp(14px,2.2vh,24px) 0 clamp(4px,.6vh,8px);
    gap: clamp(8px,1vh,10px);
}

/* ── Brand Section ── */
.brand-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tagline-top {
    font-size: clamp(14px,1.6vh,18px);
    font-style: italic;
    font-weight: 600;
    /*    background: linear-gradient(90deg,#1a40a0 0%,#1e6eb5 50%,#0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;*/
    color: #134C8F;
    line-height: 1.65;
    max-width: 540px;
    margin-bottom: 5px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(126,200,69,.2);
    color: #4a9c2b;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: clamp(11px,1.15vh,13px);
    font-weight: 700;
    margin-bottom: 6px;
    border: 2px solid rgba(126,200,69,.3);
    letter-spacing: .02em;
    text-transform: uppercase;
}

    .brand-badge i {
        font-size: 13px;
    }

.login-tittle {
    font-family: 'Sora', sans-serif;
    font-size: clamp(19px,2.2vw,46px);
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -.5px;
    color: #134c8f !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    margin-bottom: 0;
}

.system-description {
    font-size: clamp(14.5px,1.6vh,18px);
    font-weight: 500;
    color: var(--info-body);
    line-height: 1.65;
    max-width: 540px;
    text-align: center;
}

/* ── Section Headings ── */
.section-heading {
    font-family: 'Sora', sans-serif;
    font-size: clamp(15px,1.65vh,18.5px);
    font-weight: 800;
    color: #134c8f !important;
    letter-spacing: .1px;
    text-align: left;
    width: 100%;
    margin-bottom: 5px;
}

/* ── Features ── */
.features-section {
    width: 100%;
}

.features-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(4px,.6vh,7px);
    width: 100%;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(4px,.6vh,7px);
}

.feature-mini {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: clamp(6px,.8vh,9px) clamp(7px,.7vw,10px);
    background: rgba(255,255,255,.82);
    border: 1px solid var(--feat-bdr);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(58,110,168,.08);
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
    text-align: left;
    min-height: 65px;
}

    .feature-mini:hover {
        transform: translateY(-2px);
        background: rgba(255,255,255,.97);
        box-shadow: 0 6px 20px rgba(58,110,168,.16);
        border-color: #34e775;
    }

    .feature-mini > i {
        width: clamp(26px,2.8vh,32px);
        height: clamp(26px,2.8vh,32px);
        flex-shrink: 0;
        border-radius: 8px;
        background: linear-gradient(135deg,#dcfce7,#bbf7d0);
        border: 1px solid #86efac;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: clamp(12px,1.35vh,15px);
        color: var(--success-color);
    }

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .feature-text strong {
        font-family: 'Sora', sans-serif;
        font-size: clamp(13.5px,1.45vh,16.5px);
        font-weight: 700;
        color: var(--info-heading);
        line-height: 1.2;
    }

    .feature-text span {
        font-size: clamp(12px,1.25vh,14.5px);
        font-weight: 500;
        color: var(--info-body);
        line-height: 1.4;
    }

/* ── Benefits ── */
.benefits-section-full {
    width: 100%;
}

.benefits-compact {
    background: rgba(255,255,255,.82);
    border: 1px solid var(--feat-bdr);
    border-radius: var(--radius-md);
    padding: clamp(10px,.9vh,14px) clamp(8px,.9vw,13px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(5px,.5vh,7px);
    width: 100%;
    box-shadow: 0 2px 8px rgba(58,110,168,.08);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(13.5px,1.45vh,16.5px);
    font-weight: 600;
    color: var(--info-body);
}

    .benefit-item i {
        color: var(--green-bright);
        font-size: clamp(13px,1.3vh,16px);
        flex-shrink: 0;
    }

/* ── Trust Badges ── */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: clamp(16px,2.8vw,40px);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(3px,.5vh,6px);
    cursor: default;
}

.trust-icon {
    width: clamp(32px,3.8vh,44px);
    height: clamp(32px,3.8vh,44px);
    border-radius: 50%;
    background: rgba(255,255,255,.85);
    border: 2px solid #a8d8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(15px,1.85vh,20px);
    color: var(--success-color);
    box-shadow: 0 2px 10px rgba(58,110,168,.12);
    transition: all var(--transition-base);
}

.trust-item:hover .trust-icon {
    border-color: var(--green-bright);
    background: #f0fdf4;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(22,163,74,.22);
}

.trust-icon i {
    font-size: clamp(15px,1.85vh,20px);
}

.trust-item > span {
    font-family: 'Sora', sans-serif;
    font-size: clamp(12.5px,1.35vh,15.5px);
    font-weight: 800;
    letter-spacing: .9px;
    text-transform: uppercase;
    color: var(--info-sub);
}

/* ════════════════════════════
   RIGHT — FORM PANEL
════════════════════════════ */
.login-form-section {
    background: linear-gradient(135deg, #ffffff 0%, #e5e5e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 26px;
    position: relative;
    border-left: 1px solid rgba(200,220,240,.6);
}

    .login-form-section::before {
        content: '';
        position: absolute;
        top: -60px;
        right: -60px;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background: radial-gradient(circle,rgba(43,79,168,.07) 0%,transparent 70%);
        pointer-events: none;
    }

    .login-form-section::after {
        content: '';
        position: absolute;
        bottom: -50px;
        left: -50px;
        width: 150px;
        height: 150px;
        border-radius: 50%;
        background: radial-gradient(circle,rgba(22,163,74,.06) 0%,transparent 70%);
        pointer-events: none;
    }

/* auth-form = form-inner */
.auth-form {
    width: 100%;
    max-width: 300px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(6px,1.1vh,11px);
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 0;
}

    .logo-container .logo {
        max-width: clamp(240px, 14vw, 180px);
        height: 60px;
        display: inline-block;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .1));
        margin-bottom: 5px;
    }

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 0;
}

    .form-header .login-tittle {
        font-size: clamp(23px,3.2vh,32px);
        font-weight: 900;
        color: #1e3a6e;
        letter-spacing: -.3px;
        white-space: normal;
    }

.form-subtitle {
    font-size: clamp(13px,1.45vh,15.5px);
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
    margin-top: -4px;
}

/* Form Fields */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: clamp(6px,1vh,10px);
    margin-bottom: 0;
}

.login-input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #9db3cc;
    pointer-events: none;
    transition: color var(--transition-base);
    z-index: 1;
}

.login-input-group:focus-within .input-icon {
    color: var(--inp-focus);
}

.login-input-group input {
    width: 100%;
    padding: clamp(8px,1.15vh,11px) 12px clamp(8px,1.15vh,11px) 42px;
    border: 1.5px solid #c8d8ee;
    border-radius: var(--radius-md);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(14px,1.55vh,16px);
    font-weight: 500;
    color: var(--text-primary);
    background: #f4f8fd;
    outline: none;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
    -webkit-appearance: none;
    appearance: none;
    height:40px !important;
}

    .login-input-group input:focus {
        border-color: var(--inp-focus);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(43,79,168,.10);
    }

    .login-input-group input::placeholder {
        color: #b0c4d8;
        font-weight: 400;
    }

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: clamp(12px,1.3vh,14px);
    gap: 6px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    user-select: none;
    padding: 2px 0;
}

    .remember-me input[type="checkbox"] {
        width: 15px;
        height: 15px;
        cursor: pointer;
        accent-color: var(--inp-focus);
    }

.forgot-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--link-blue);
    font-weight: 700;
    text-decoration: none;
    font-size: clamp(12px,1.3vh,14px);
    transition: color var(--transition-fast);
    white-space: nowrap;
    cursor: pointer;
}

    .forgot-link:hover {
        color: #1e40af;
        text-decoration: underline;
    }

/* Buttons */
.Login-btn-primary {
    width: 100%;
    padding: clamp(11px,1.45vh,14px);
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #2b4fa8 0%, #1e3d8f 100%);
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: clamp(15px,1.7vh,18px);
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(43,79,168,.34);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    letter-spacing: .2px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .Login-btn-primary::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg,rgba(255,255,255,.15),transparent);
        opacity: 0;
        transition: opacity var(--transition-base);
    }

    .Login-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(43,79,168,.40);
    }

        .Login-btn-primary:hover::before {
            opacity: 1;
        }

    .Login-btn-primary:active {
        transform: translateY(0);
    }

    .Login-btn-primary i {
        font-size: 17px;
        transition: transform var(--transition-base);
    }

    .Login-btn-primary:hover i {
        transform: translateX(4px);
    }

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(11px,1.15vh,13px);
    font-weight: 500;
    color: #a0b4cc;
    margin: 0;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #d8e6f0;
    }

    .divider span {
        padding: 0;
    }

/* SSO Button */
.btn-secondary {
    width: 100%;
    padding: clamp(9px,1.2vh,12px);
    border: 1.5px solid #c8d8ee;
    border-radius: var(--radius-md);
    background: #fff;
    color: #1e3a6e;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(14px,1.55vh,16px);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-base);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

    .btn-secondary:hover {
        border-color: #2b4fa8;
        color: #2b4fa8;
        background: rgba(43,79,168,.05);
    }

    .btn-secondary i {
        font-size: 16px;
        color: #2b4fa8;
    }

/* Form Footer */
.form-footer {
    text-align: center;
    font-size: clamp(13px,1.4vh,15px);
    font-weight: 500;
    color: var(--text-light);
    margin-top: 0;
}

.signup-link {
    color: var(--link-blue);
    text-decoration: none;
    font-weight: 800;
    margin-left: 3px;
    transition: color var(--transition-fast);
    display: inline-block;
}

    .signup-link:hover {
        color: #1e40af;
        text-decoration: underline;
    }

/* Security Badge */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: clamp(6px,.8vh,9px) 14px;
    border-radius: 40px;
    background: rgba(22,163,74,.08);
    border: 1px solid rgba(22,163,74,.22);
    font-size: clamp(11px,1.15vh,13px);
    font-weight: 700;
    color: #166534;
    margin-top: 0;
    padding-top: clamp(6px,.8vh,9px);
    border-top: none;
}

    .security-badge i {
        color: var(--green-bright);
        font-size: 14px;
    }

/* ════════════ RESPONSIVE ════════════ */
@media (max-width: 1100px) {
    .info-panel {
        padding: 0 22px;
    }

    .login-form-section {
        padding: 0 18px;
    }

    .login-tittle:not(.form-header .login-tittle) {
        font-size: clamp(13px,2.2vw,30px);
    }
}

@media (max-width: 900px) {
    .login-card {
        grid-template-columns: 1.2fr .8fr;
    }

    .info-panel {
        padding: 0 18px;
    }

    .login-form-section {
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 0;
    }

    .login-card {
        grid-template-columns: 1fr;
        border-radius: 0;
        max-width: 100%;
    }

    .info-panel {
        display: none !important;
    }

    .login-form-section {
        display: flex !important;
        padding: 0 32px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .auth-form {
        max-width: 420px;
    }
}

@media (max-width: 480px) {
    .login-form-section {
        padding: 0 20px;
    }
}

@media (max-width: 360px) {
    .login-form-section {
        padding: 0 14px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ════════════ ANIMATIONS ════════════ */
@keyframes up {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-content > * {
    animation: up .42s ease both;
}

    .info-content > *:nth-child(1) {
        animation-delay: .08s
    }

    .info-content > *:nth-child(2) {
        animation-delay: .12s
    }

    .info-content > *:nth-child(3) {
        animation-delay: .16s
    }

    .info-content > *:nth-child(4) {
        animation-delay: .20s
    }

    .info-content > *:nth-child(5) {
        animation-delay: .24s
    }

    .info-content > *:nth-child(6) {
        animation-delay: .28s
    }

    .info-content > *:nth-child(7) {
        animation-delay: .32s
    }

    .info-content > *:nth-child(8) {
        animation-delay: .36s
    }

.auth-form > * {
    animation: up .42s ease both;
}

    .auth-form > *:nth-child(1) {
        animation-delay: .20s
    }

    .auth-form > *:nth-child(2) {
        animation-delay: .24s
    }

    .auth-form > *:nth-child(3) {
        animation-delay: .27s
    }

    .auth-form > *:nth-child(4) {
        animation-delay: .30s
    }

    .auth-form > *:nth-child(5) {
        animation-delay: .33s
    }

    .auth-form > *:nth-child(6) {
        animation-delay: .36s
    }

    .auth-form > *:nth-child(7) {
        animation-delay: .39s
    }

    .auth-form > *:nth-child(8) {
        animation-delay: .42s
    }

    .auth-form > *:nth-child(9) {
        animation-delay: .45s
    }

    .auth-form > *:nth-child(10) {
        animation-delay: .48s
    }

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

:focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ── iOS Safari fix ── */
@supports (-webkit-touch-callout: none) {
    .login-container,
    .login-card,
    .login-form-section {
        min-height: -webkit-fill-available;
    }
}
.Login-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.Login-btn-primary:disabled {
    opacity: .75;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 6px 20px rgba(43,79,168,.2) !important;
}