/* ===== AUTH PAGE BASE ===== */
body.auth-page {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ===== AUTH MAIN ===== */
.auth-main {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 24px 60px;
}

.auth-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.auth-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
}

.auth-glow-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(0,229,155,0.4), transparent 70%);
    top: -200px; left: -200px;
}

.auth-glow-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.3), transparent 70%);
    bottom: -100px; right: -100px;
}

/* ===== WRAPPER ===== */
.auth-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* ===== INFO PANEL ===== */
.auth-info {
    padding: 20px 0;
}

.auth-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(0,229,155,0.1);
    border: 1px solid rgba(0,229,155,0.2);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.auth-info-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.auth-info-desc {
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 420px;
}

/* Benefits */
.auth-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
}

.benefit-item:hover {
    border-color: rgba(0,229,155,0.2);
}

.benefit-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,229,155,0.08);
    border-radius: 10px;
}

.benefit-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.benefit-desc {
    font-size: 12px;
    color: var(--text-3);
}

/* Activation Info (pengganti trial badge) */
.activation-info {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(0,229,155,0.08), rgba(0,179,122,0.04));
    border: 1px solid rgba(0,229,155,0.2);
    border-radius: var(--radius);
}

.ai-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.ai-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.ai-sub {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 2px;
}

/* ===== FORM PANEL ===== */
.auth-form-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.4);
    overflow: hidden;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-3);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-3);
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.step-dot::after {
    content: attr(data-num);
}

.step-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #080810;
    box-shadow: 0 0 20px rgba(0,229,155,0.4);
}

.step-dot.done {
    background: rgba(0,229,155,0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.step-dot.done::after {
    content: '✓';
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    transition: background 0.3s ease;
    max-width: 80px;
}

.step-line.done {
    background: var(--primary);
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeInStep 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-step-header {
    margin-bottom: 28px;
}

.form-step-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.form-step-header h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.form-step-header p {
    font-size: 14px;
    color: var(--text-3);
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-2);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 15px;
    pointer-events: none;
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: rgba(0,229,155,0.4);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 4px rgba(0,229,155,0.08);
}

.form-input::placeholder {
    color: var(--text-3);
}

.form-input.error {
    border-color: rgba(239,68,68,0.5);
    background: rgba(239,68,68,0.04);
}

.form-input.success {
    border-color: rgba(0,229,155,0.4);
}

.input-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 4px;
}

.input-toggle:hover { opacity: 1; }

/* Password Strength */
.password-strength {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
    width: 0%;
}

.strength-label {
    font-size: 11px;
    font-weight: 600;
    min-width: 50px;
}

/* Field messages */
.field-error {
    font-size: 12px;
    color: #ef4444;
    margin-top: 6px;
    min-height: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.field-hint {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 6px;
}

/* Account Summary */
.account-summary {
    background: rgba(0,229,155,0.05);
    border: 1px solid rgba(0,229,155,0.15);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.summary-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.summary-item:last-child { border-bottom: none; }

.summary-label {
    font-size: 13px;
    color: var(--text-3);
}

.summary-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

/* Form Error */
.form-error {
    padding: 12px 16px;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--radius-sm);
    color: #ef4444;
    font-size: 13px;
    margin-bottom: 16px;
    animation: fadeIn 0.2s ease;
}

/* Terms */
.form-terms {
    font-size: 12px;
    color: var(--text-3);
    text-align: center;
    line-height: 1.6;
}

.form-terms a {
    color: var(--primary);
    text-decoration: none;
}

.form-terms a:hover { text-decoration: underline; }

/* Btn Loader */
.btn-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(8,8,16,0.2);
    border-top-color: #080810;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Auth Switch */
.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--text-3);
    padding: 0 8px;
}

/* Nav text */
.auth-nav-text {
    font-size: 13px;
    color: var(--text-3);
}

/* ===== NAVBAR OVERRIDE untuk halaman daftar ===== */
body.auth-page .navbar .nav-inner {
    justify-content: space-between;
    gap: 16px;
}

body.auth-page .navbar .nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

body.auth-page .navbar .auth-nav-text {
    font-size: 13px;
    color: var(--text-3);
    white-space: nowrap;
}

/* Sembunyikan auth-nav-text di layar kecil */
@media (max-width: 480px) {
    body.auth-page .navbar .auth-nav-text {
        display: none;
    }

    body.auth-page .navbar .nav-cta {
        gap: 8px;
    }
}

/* Override: nav-cta di halaman daftar SELALU tampil, tidak disembunyikan oleh media query dari style.css */
@media (max-width: 768px) {
    body.auth-page .navbar .nav-cta {
        display: flex !important;
    }
}

/* ===== SUCCESS STATE ===== */
.success-state {
    text-align: center;
    padding: 8px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.success-icon svg {
    width: 100%;
    height: 100%;
}

.checkmark {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: draw-check 0.6s ease 0.3s forwards;
}

@keyframes draw-check {
    to { stroke-dashoffset: 0; }
}

.success-state h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}

.success-state > p {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 28px;
}

/* Next Steps */
.next-steps {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.next-step-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.next-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.next-step-item:last-child { border-bottom: none; }

.next-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: #080810;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.next-step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.next-step-desc {
    font-size: 12px;
    color: var(--text-3);
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        max-width: 520px;
        gap: 32px;
    }

    .auth-info {
        text-align: center;
    }

    .auth-info-desc {
        margin: 0 auto 32px;
    }

    .auth-benefits {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .activation-info {
        display: none;
    }
}

@media (max-width: 560px) {
    .auth-main { padding: 90px 16px 40px; }
    .auth-form-card { padding: 28px 20px; }
    .auth-benefits { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; }
    .auth-info { display: none; }
}
