*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* --blue-50: #E6F1FB;
    --blue-100: #B5D4F4; */
    --blue-50:  #FBEAF5;
    --blue-100: #F6C5E4;
    /* --blue-600: #185FA5;
    --blue-800: #0C447C;
    --blue-900: #042C53; */
    --blue-600: #e91e9f;
    --blue-800: #b00077;
    --blue-900: #87005b;
    --gray-50: #F8F8F6;
    --gray-100: #EDEDEA;
    --gray-300: #C4C3BB;
    --gray-500: #888780;
    --gray-700: #5F5E5A;
    --gray-900: #2C2C2A;
    --teal-500: #1D9E75;
    --teal-600: #0F6E56;
    --red-600: #A32D2D;
    --white: #FFFFFF;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--gray-50);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-900);
}

.page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100%;
    margin: auto;
}

/* ── LEFT PANEL ── */
.left-panel {
    background-color: var(--blue-900);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 52px;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 80px solid rgba(255, 255, 255, 0.30);
    bottom: -100px;
    right: -100px;
}

.left-panel::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 50px solid rgba(255, 255, 255, 0.30);
    top: 60px;
    right: 40px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background-color: var(--blue-600);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: white;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-name {
    font-size: 18px;
    font-weight: 600;
    color: white;
    letter-spacing: -0.3px;
}

.brand-tag {
    font-size: 11px;
    font-weight: 500;
    color: var(--blue-100);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2px;
}

.left-main {
    z-index: 1;
}

.left-main h1 {
    font-size: 36px;
    font-weight: 600;
    color: white;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.left-main h1 em {
    font-style: normal;
    /* color: #85B7EB; */
    color: #EB85C0;
}

.left-main p {
    font-size: 15px;
    color: var(--blue-100);
    line-height: 1.65;
    max-width: 340px;
    font-weight: 400;
}

.stats-row {
    display: flex;
    gap: 32px;
    z-index: 1;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 22px;
    font-weight: 600;
    color: white;
}

.stat-label {
    font-size: 12px;
    color: var(--blue-100);
    font-weight: 400;
}

.stat-divider {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    align-self: stretch;
}

/* ── RIGHT PANEL ── */
.right-panel {
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 64px;
}

.form-header {
    margin-bottom: 36px;
}

.form-header h2 {
    font-size: 26px;
    font-weight: 600;
    color: var(--gray-900);
    letter-spacing: -0.4px;
    margin-bottom: 6px;
}

.form-header p {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 400;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 7px;
}

.input-wrap {
    position: relative;
}

.input-wrap .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--gray-300);
    pointer-events: none;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 42px;
    border: 1.5px solid var(--gray-100);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--gray-900);
    background-color: var(--gray-50);
    transition: border-color 0.15s, background-color 0.15s;
    outline: none;
}

input:hover {
    border-color: var(--gray-300);
}

input:focus {
    border-color: var(--blue-600);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.1);
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-300);
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.toggle-password:hover {
    color: var(--gray-700);
}

.toggle-password svg {
    width: 16px;
    height: 16px;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-700);
    user-select: none;
}

.remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    padding: 0;
    accent-color: var(--blue-600);
    border-radius: 4px;
    cursor: pointer;
}

.forgot-link {
    font-size: 13px;
    color: var(--blue-600);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    height: 46px;
    background-color: var(--blue-600);
    color: white;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.08s;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: var(--blue-800);
}

.btn-primary:active {
    transform: scale(0.99);
}

.btn-primary svg {
    width: 16px;
    height: 16px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: var(--gray-100);
}

.divider-text {
    font-size: 12px;
    color: var(--gray-300);
    font-weight: 500;
}

.btn-sso {
    width: 100%;
    height: 44px;
    background-color: white;
    border: 1.5px solid var(--gray-100);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: border-color 0.15s, background-color 0.15s;
}

.btn-sso:hover {
    border-color: var(--gray-300);
    background-color: var(--gray-50);
}

.btn-sso svg {
    width: 18px;
    height: 18px;
}

.error-banner {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background-color: #FCEBEB;
    border: 1px solid #F09595;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--red-600);
}

.error-banner svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.error-banner.visible {
    display: flex;
}

.form-footer {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
    text-align: center;
    font-size: 12px;
    color: var(--gray-300);
}

.form-footer a {
    color: var(--blue-600);
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}

.btn-primary.loading .btn-label {
    display: none;
}

.btn-primary.loading .spinner {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .page {
        grid-template-columns: 1fr;
    }

    .left-panel {
        padding: 36px 28px;
        min-height: auto;
    }

    .left-main h1 {
        font-size: 26px;
    }

    .right-panel {
        padding: 36px 28px;
    }

    .stats-row {
        gap: 20px;
    }
}