:root {
    --primary-color: #1d4ed8;
    --primary-hover: #1e40af;
    --secondary-color: #0f172a;
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --input-border: #e2e8f0;
    --input-focus: #3b82f6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

* {
    font-family: var(--ch-font, 'Plus Jakarta Sans', system-ui, sans-serif);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Auth Layout (Split Screen) */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
}

.auth-sidebar {
    flex: 1;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.85), rgba(15, 23, 42, 0.95)), url('../img/rapat.jpeg') center/cover no-repeat;
    display: none;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    color: white;
}

@media (min-width: 992px) {
    .auth-sidebar {
        display: flex;
        flex: 0 0 44%;
        max-width: 44%;
    }
    .auth-main {
        flex: 1;
        padding: 2.5rem 4rem;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    }
    .auth-card {
        max-width: 440px;
        margin: 0 auto;
    }
    .auth-card--wide {
        max-width: 520px;
    }
}

.auth-sidebar h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.auth-sidebar p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 400px;
}

/* Halaman masuk / daftar — panel sambutan */
.auth-welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

.auth-welcome-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.auth-welcome-lead {
    font-size: 1rem;
    opacity: 0.92;
    max-width: 22rem;
    line-height: 1.55;
    margin-bottom: 1.75rem;
}

.auth-welcome-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-welcome-steps li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.auth-welcome-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.auth-welcome-steps strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.auth-welcome-steps span {
    font-size: 0.82rem;
    opacity: 0.88;
    line-height: 1.4;
}

.auth-welcome-foot {
    opacity: 0.9;
}

.auth-mobile-hero {
    display: block;
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 55%, #0f172a 100%);
    color: #fff;
    border-radius: 1.25rem;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 992px) {
    .auth-mobile-hero {
        display: none;
    }
}

.auth-mobile-hero h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
}

.auth-mobile-hero p {
    font-size: 0.85rem;
    opacity: 0.92;
    margin: 0;
    line-height: 1.45;
}

.auth-info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.auth-info-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: white;
}

.auth-card {
    width: 100%;
    max-width: 450px;
}

/* Premium Inputs */
.form-floating > .form-control {
    border: 2px solid var(--input-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-floating > label {
    color: var(--text-muted);
}

/* Premium Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    color: white;
}

/* Links */
.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth — Google-first & form sederhana */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-google:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    color: #0f172a;
    transform: translateY(-1px);
}
.google-user-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    margin-bottom: 1.25rem;
}
.google-user-badge .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.google-user-badge .name {
    font-weight: 700;
    color: #166534;
    font-size: 0.95rem;
    line-height: 1.3;
}
.google-user-badge .hint {
    font-size: 0.75rem;
    color: #15803d;
    margin: 0;
}
.auth-step-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 0.35rem;
}
.auth-manual-box {
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 0;
    margin-top: 1rem;
    background: #fafbfc;
}
.auth-manual-box summary {
    cursor: pointer;
    padding: 0.85rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
    list-style: none;
}
.auth-manual-box summary::-webkit-details-marker { display: none; }
.auth-manual-box summary::after {
    content: '+';
    float: right;
    font-weight: 700;
    color: #94a3b8;
}
.auth-manual-box[open] summary::after { content: '−'; }
.auth-manual-box .auth-manual-inner {
    padding: 0 1rem 1rem;
    border-top: 1px solid #e2e8f0;
}
.auth-address-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.8fr;
    gap: 0.5rem;
}
@media (max-width: 576px) {
    .auth-address-row {
        grid-template-columns: 1fr;
    }
}
.auth-address-row .form-control {
    border: 2px solid var(--input-border);
    border-radius: 12px;
    height: 58px;
    text-align: center;
}
.auth-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}
