:root {
    --primary: #0A1142;
    --primary-light: #151E5C;
    --primary-dark: #060A2A;
    --accent: #2563EB;
    --accent-hover: #1D4ED8;
    --bg: #f7fafc;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #edf2f7;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e0;
    --gray-400: #a0aec0;
    --gray-500: #718096;
    --gray-600: #4a5568;
    --gray-700: #2d3748;
    --gray-800: #1a202c;
    --success: #38a169;
    --warning: #d69e2e;
    --info: #3182ce;
    --radius: 10px;
    --shadow-lg: 0 18px 28px rgba(0, 0, 0, .12), 0 6px 12px rgba(0, 0, 0, .08);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: radial-gradient(circle at 10% 20%, #ffffff 0%, #f2f4f7 55%, #eceff3 100%);
    color: var(--gray-700);
    min-height: 100vh;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 1040px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--gray-200);
}

.auth-panel {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.auth-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px);
    background-size: 14px 14px;
    opacity: .25;
    pointer-events: none;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fbd38d;
}

.brand-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, .7);
    margin-top: 2px;
}

/* Panexis Brand */
.panexis-brand-wrap {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.panexis-brand-main {
    font-family: 'Inter', sans-serif;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 3px;
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
}

.panexis-brand-main em {
    color: #fc8181;
    font-style: normal;
}

.panexis-brand-sub {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    text-transform: uppercase;
}

/* Input dengan icon (dipakai di reset & forgot password) */
.input-icon-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 13px;
    pointer-events: none;
}

.auth-input-icon {
    padding-left: 36px !important;
    padding-right: 40px;
}

.input-toggle-pw {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    font-size: 13px;
    padding: 4px;
    transition: color 0.2s;
}

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

.auth-panel-body {
    position: relative;
    z-index: 1;
}

.auth-panel-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-panel-text {
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
    line-height: 1.6;
}

.auth-panel-footer {
    position: relative;
    z-index: 1;
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
}

.auth-form {
    padding: 44px 42px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-800);
}

.auth-subtitle {
    font-size: 13px;
    color: var(--gray-500);
}

.auth-alert {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 12px;
}

.auth-alert-success {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #2f855a;
}

.auth-alert ul {
    margin: 0;
    padding-left: 18px;
}

.auth-field label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--gray-500);
    margin-bottom: 6px;
    font-weight: 600;
}

.auth-input {
    width: 100%;
    border: 1px solid var(--gray-200);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(68, 68, 68, .08);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--gray-600);
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.auth-btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 16px rgba(68, 68, 68, .2);
}

.auth-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.auth-btn-outline {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.auth-btn-outline:hover {
    border-color: var(--primary-light);
    color: var(--primary-dark);
}

.auth-socials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.auth-socials .auth-btn {
    font-size: 13px;
}

.auth-footer {
    font-size: 12px;
    color: var(--gray-500);
    text-align: center;
}

.auth-footer a {
    color: var(--primary-light);
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--accent);
}

@media (max-width: 900px) {
    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        padding: 32px;
    }

    .auth-form {
        padding: 36px;
    }
}

@media (max-width: 600px) {
    .auth-shell {
        padding: 24px 16px;
    }

    .auth-panel {
        padding: 28px;
    }

    .auth-form {
        padding: 28px;
    }
}