/* ============================================================
   AUTH PAGES - Modern Split Layout (Ungu, Merah, Kuning)
   ============================================================ */

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

:root {
    --purple-dark:  #3b0764;
    --purple-mid:   #6d28d9;
    --purple-light: #8b5cf6;
    --red:          #ef4444;
    --red-dark:     #b91c1c;
    --yellow:       #facc15;
    --yellow-dark:  #eab308;
    --white:        #ffffff;
    --gray-50:      #f9fafb;
    --gray-100:     #f3f4f6;
    --gray-300:     #d1d5db;
    --gray-500:     #6b7280;
    --gray-700:     #374151;
    --gray-900:     #111827;
}

body {
    font-family: 'Nunito', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    background: var(--gray-50);
    overflow-x: hidden;
}

/* SPLIT LAYOUT */
.auth-wrapper { display: flex; width: 100%; min-height: 100vh; }

/* LEFT PANEL */
.auth-left {
    flex: 0 0 44%;
    background: linear-gradient(145deg, #3b0764 0%, #4c1d95 40%, #6d28d9 75%, #7c3aed 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 52px;
    overflow: hidden;
}
.auth-left::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(239,68,68,0.35) 0%, transparent 70%);
    border-radius: 50%;
    animation: blobFloat 8s ease-in-out infinite;
}
.auth-left::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(250,204,21,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: blobFloat 11s ease-in-out infinite reverse;
}
@keyframes blobFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(20px,-30px) scale(1.05); }
    66%      { transform: translate(-15px,15px) scale(0.97); }
}

.auth-brand { position: relative; z-index: 2; }
.auth-brand-logo { font-size: 30px; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -1.5px; display: block; }
.auth-brand-logo span { color: #ef4444; }
.auth-brand-tagline { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,0.55); }

.auth-illustration { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.auth-illustration h2 { font-size: 32px; font-weight: 800; color: #fff; line-height: 1.25; margin-bottom: 14px; }
.auth-illustration h2 .highlight { color: #facc15; }
.auth-illustration p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.7; max-width: 310px; }

.auth-features { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.auth-feature-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.8); }
.auth-feature-dot {
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(250,204,21,0.15); border: 1.5px solid rgba(250,204,21,0.45);
    display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0;
}

.auth-stats { position: relative; z-index: 2; display: flex; gap: 28px; }
.auth-stat-num { font-size: 22px; font-weight: 800; color: #facc15; line-height: 1; }
.auth-stat-lbl { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 3px; }

/* RIGHT PANEL */
.auth-right {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px 56px;
    background: #fff;
    overflow-y: auto;
}
.auth-form-wrap { width: 100%; max-width: 400px; }

.auth-form-header { margin-bottom: 28px; }
.auth-form-header h1 { font-size: 26px; font-weight: 800; color: #111827; letter-spacing: -0.5px; margin-bottom: 5px; }
.auth-form-header p  { font-size: 14px; color: #6b7280; }

/* Alert */
.alert { padding: 11px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 18px; border-left: 3px solid; }
.alert-error   { background: #fef2f2; color: #991b1b; border-color: #ef4444; }
.alert-success { background: #f0fdf4; color: #166534; border-color: #22c55e; }
.alert-info    { background: #eff6ff; color: #1d4ed8; border-color: #3b82f6; }

/* Form */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }

.input-wrapper { position: relative; }
.input-prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; color: #6b7280; pointer-events: none; white-space: nowrap; font-weight: 500; }

.form-group input {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid #d1d5db; border-radius: 10px;
    font-size: 14px; color: #111827; background: #f9fafb;
    outline: none; font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-group input::placeholder { color: #c4c9d4; }
.form-group input:focus { border-color: #6d28d9; background: #fff; box-shadow: 0 0 0 3px rgba(109,40,217,0.1); }
.form-group input.has-prefix { padding-left: 110px; }
.form-group input.error   { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.1); background: #fff9f9; }
.form-group input.success { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.1); }

.field-hint { font-size: 11.5px; margin-top: 5px; min-height: 16px; transition: color 0.2s; }
.field-hint.error   { color: #ef4444; }
.field-hint.success { color: #16a34a; }
.field-hint.info    { color: #6b7280; }

.password-strength { height: 4px; border-radius: 2px; background: #f3f4f6; margin-top: 8px; overflow: hidden; }
.password-strength-bar { height: 100%; border-radius: 2px; transition: width 0.3s, background 0.3s; width: 0%; }
.strength-weak   { background: #ef4444; width: 33%; }
.strength-medium { background: #eab308; width: 66%; }
.strength-strong { background: #22c55e; width: 100%; }

.remember-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.remember-row label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #6b7280; cursor: pointer; font-weight: 400; margin-bottom: 0; }
.remember-row a { font-size: 13px; color: #eab308; font-weight: 600; text-decoration: none; }
.remember-row a:hover { text-decoration: underline; }

/* CTA Button */
.btn-primary {
    width: 100%; padding: 13px 20px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%);
    color: #fff; border: none; border-radius: 10px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    transition: all 0.2s; margin-top: 4px;
    position: relative; overflow: hidden; font-family: inherit;
    box-shadow: 0 4px 14px rgba(220,38,38,0.35);
}
.btn-primary::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(220,38,38,0.45); }
.btn-primary:active { transform: scale(0.98); box-shadow: none; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #d1d5db; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #f3f4f6; }

.btn-google {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 11px 16px;
    background: #fff; color: #374151;
    border: 1.5px solid #d1d5db; border-radius: 10px;
    font-size: 14px; font-weight: 600; text-decoration: none;
    transition: all 0.2s; font-family: inherit;
}
.btn-google:hover { border-color: #9ca3af; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.auth-footer { text-align: center; margin-top: 22px; font-size: 13.5px; color: #6b7280; }
.auth-footer a { color: #6d28d9; font-weight: 700; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

.auth-mobile-logo { display: none; text-align: center; margin-bottom: 24px; }
.auth-mobile-logo a { font-size: 26px; font-weight: 800; text-decoration: none; letter-spacing: -1px; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .auth-left { flex: 0 0 38%; padding: 36px 32px; }
    .auth-illustration h2 { font-size: 24px; }
    .auth-right { padding: 36px 32px; }
}
@media (max-width: 680px) {
    .auth-wrapper { flex-direction: column; }
    .auth-left { display: none; }
    .auth-right {
        padding: 32px 24px 48px;
        justify-content: flex-start;
        background: linear-gradient(150deg, #3b0764 0%, #6d28d9 55%, #7c3aed 100%);
        min-height: 100vh;
    }
    .auth-form-wrap { max-width: 100%; }
    .auth-mobile-logo { display: block; }
    .auth-mobile-logo a { color: #fff; }
    .auth-mobile-logo a span { color: #facc15; }
    .auth-form-header h1 { color: #fff; font-size: 22px; }
    .auth-form-header p  { color: rgba(255,255,255,0.65); }
    .form-group label { color: rgba(255,255,255,0.88); }
    .form-group input { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.22); color: #fff; }
    .form-group input::placeholder { color: rgba(255,255,255,0.38); }
    .form-group input:focus { background: rgba(255,255,255,0.18); border-color: #facc15; box-shadow: 0 0 0 3px rgba(250,204,21,0.15); }
    .input-prefix { color: rgba(255,255,255,0.55); }
    .field-hint.info { color: rgba(255,255,255,0.55); }
    .password-strength { background: rgba(255,255,255,0.18); }
    .remember-row label { color: rgba(255,255,255,0.75); }
    .remember-row a { color: #facc15; }
    .divider { color: rgba(255,255,255,0.35); }
    .divider::before, .divider::after { background: rgba(255,255,255,0.18); }
    .btn-google { background: rgba(255,255,255,0.95); border-color: transparent; color: #374151; }
    .auth-footer { color: rgba(255,255,255,0.65); }
    .auth-footer a { color: #facc15; }
    .alert-error { background: rgba(254,242,242,0.95); }
}
