/* =========================================
   EARNFRAM UI - AUTH (REDESIGN)
   ========================================= */

:root {
    --auth-bg: #0b0f19;
    --auth-card-bg: #131a2b;
    --auth-input-bg: #0b0f19;
    --auth-border: #26314b;
    --auth-border-focus: #facc15;
    --auth-text-muted: #8892a8;
}

body.auth-page {
    background-color: var(--auth-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Auth */
.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 24px;
    color: #fff;
    text-decoration: none;
}

.auth-brand span { color: var(--ef-primary); }

.auth-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--auth-text-muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover { color: #fff; }

/* Layout Utama Auth (2 Kolom) */
.auth-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 24px 60px 24px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    gap: 60px;
}

/* Kartu Form (Kiri) */
.auth-card {
    width: 100%;
    max-width: 480px;
    background-color: var(--auth-card-bg);
    border: 1px solid var(--auth-border);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.auth-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.auth-badge {
    width: 48px;
    height: 48px;
    background-color: rgba(250, 204, 21, 0.1);
    color: var(--ef-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-title {
    font-size: 26px;
    margin-bottom: 6px;
    color: #fff;
}

.auth-sub {
    color: var(--auth-text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* Form Fields */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.field-control {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 14px;
    color: var(--auth-text-muted);
    pointer-events: none;
    width: 20px;
    height: 20px;
}

.auth-input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    background-color: var(--auth-input-bg);
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
    border-color: var(--auth-border-focus);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.1);
}

.auth-input::placeholder {
    color: #4b5563;
}

/* Tombol Mata Password */
.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--auth-text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover { color: #fff; }

/* Checkbox Terms */
.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--auth-text-muted);
    line-height: 1.5;
    cursor: pointer;
}

.auth-check input {
    margin-top: 2px;
    accent-color: var(--ef-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.auth-check a {
    color: var(--ef-primary);
    text-decoration: none;
    font-weight: 700;
}

/* Tombol Submit */
.btn-auth-submit {
    background-color: var(--ef-primary);
    color: #000;
    padding: 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
    transition: background 0.2s;
}

.btn-auth-submit:hover {
    background-color: var(--ef-primary-hover);
}

.btn-auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Switch Link */
.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--auth-text-muted);
}

.auth-switch a {
    color: var(--ef-primary);
    font-weight: 800;
    text-decoration: none;
}

/* Alert */
.auth-alert {
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    display: none;
}

.auth-alert.error {
    display: block;
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.auth-alert.success {
    display: block;
    background-color: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

/* Kolom Kanan (Ilustrasi) */
.auth-art {
    flex: 1;
    display: none; /* Sembunyikan di mobile */
    flex-direction: column;
    justify-content: center;
    position: relative;
    max-width: 500px;
}

.auth-art-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.auth-art-tag {
    background-color: #fef08a;
    color: #000;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.auth-art-tag.accent {
    background-color: var(--ef-primary);
}

.auth-art-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, #1e293b, #0b0f19);
    border: 1px solid var(--auth-border);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    margin-bottom: 32px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.auth-art-image::after {
    content: '';
    position: absolute;
    bottom: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.15) 0%, transparent 70%);
}

.auth-art-title {
    font-size: 32px;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.auth-art-perks {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-art-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--auth-text-muted);
    font-size: 15px;
    font-weight: 600;
}

.auth-art-perks li svg {
    color: var(--ef-primary);
}

/* Footer Auth */
.auth-footer {
    border-top: 1px solid var(--auth-border);
    padding: 20px 24px;
    text-align: center;
    color: var(--auth-text-muted);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.auth-footer-legal {
    display: flex;
    gap: 20px;
}

.auth-footer-legal a {
    color: var(--auth-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-footer-legal a:hover { color: #fff; }

/* Responsive Desktop */
@media (min-width: 992px) {
    .auth-art { display: flex; }
}