:root {
    --primary: #0f172a;
    --primary-accent: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --focus-ring: rgba(37, 99, 235, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
}

.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* SISI KIRI: BRANDING & PREVIEW SYSTEM */
.auth-brand-side {
    flex: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-brand-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-body {
    max-width: 480px;
    z-index: 2;
}

.system-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #93c5fd;
}

.brand-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.brand-description {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.6;
}

.brand-footer {
    font-size: 13px;
    color: #64748b;
    z-index: 2;
}

/* SISI KANAN: FORM */
.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--card-bg);
}

.form-container {
    width: 100%;
    max-width: 460px;
}

.form-header {
    margin-bottom: 32px;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.form-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* FORM ELEMENTS */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.input-box {
    position: relative;
}

.input-box input,
.input-box select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #ffffff;
    color: var(--text-main);
    font-size: 14px;
    transition: all 0.2s ease;
}

.input-box select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.input-box input:focus,
.input-box select:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.password-toggle:hover {
    color: var(--text-main);
}

/* CHECKBOX & OPTIONS */
.terms {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.terms input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-accent);
    border-radius: 4px;
    cursor: pointer;
}

/* BUTTON */
.btn-primary {
    width: 100%;
    height: 46px;
    background-color: var(--primary-accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* LINKS */
.auth-redirect {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-redirect a {
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-redirect a:hover {
    text-decoration: underline;
}

.error-message {
    padding: 10px 14px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: 13px;
    margin-bottom: 16px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .auth-brand-side {
        display: none;
    }
}

@media (max-width: 480px) {
    .two-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
}