/* =========================
   AUTH PAGES (LOGIN & REGISTER)
========================= */

body {
    background: #f5f7fb;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Container */
.auth-container {
    max-width: 420px;
    margin: 60px auto;
    padding: 0 15px;
}

/* Card */
.auth-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

/* Brand */
.auth-brand {
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #0f172a;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.auth-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 0.92rem;
    margin-bottom: 16px;
}

/* Title */
.auth-card h2 {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    color: #111827;
}

/* Label */
.auth-card label {
    display: block;
    margin-top: 6px;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* Input */
.auth-card input {
    width: 100%;
    padding: 11px;
    margin-top: 0;
    margin-bottom: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

.auth-card input:focus {
    outline: none;
    border-color: #0f62fe;
    box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.12);
}

/* Button */
.auth-card button {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    background: #0f62fe;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.auth-card button:hover {
    opacity: 0.95;
}

.auth-card button:active {
    transform: scale(0.99);
}

.auth-card button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Alert */
.alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.alert-error {
    background: #ffe5e5;
    color: #b91c1c;
}

.alert-success {
    background: #e5ffe5;
    color: #166534;
}

/* Links */
.auth-links {
    text-align: center;
    margin-top: 14px;
    font-size: 14px;
}

.auth-links p {
    margin: 8px 0;
}

.auth-links a {
    color: #0f62fe;
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-container {
        margin: 30px auto;
    }

    .auth-card {
        padding: 18px;
    }

    .auth-brand {
        font-size: 1rem;
    }

    .auth-subtitle {
        font-size: 0.88rem;
    }
}

.auth-page {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

.auth-shell {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth-card {
    background: var(--panel);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 24px 20px;
}

.auth-card-head {
    text-align: center;
    margin-bottom: 20px;
}

.auth-brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto 12px;
}

.auth-card-head h1 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    color: var(--text);
}

.auth-card-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-field {
    display: grid;
    gap: 6px;
}

.auth-field label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
}

.auth-field input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    font-size: 0.95rem;
    color: var(--text);
    background: #fff;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.12);
}

.auth-submit-btn {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.auth-submit-btn:hover {
    filter: brightness(0.98);
}

.auth-links {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    text-align: center;
}

.auth-links a {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
}

.thank-you-card {
    text-align: center;
}

.thank-you-head {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.thank-you-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.thank-you-icon {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(22, 101, 52, 0.12);
}

.thank-you-status-box {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #eff6ff;
    color: #1e3a8a;
    text-align: left;
}

.thank-you-status-box strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.thank-you-status-box span {
    display: block;
    font-size: 14px;
    line-height: 1.6;
}

.thank-you-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
    text-align: left;
}

.thank-you-info-card {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

.thank-you-info-card h4 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #111827;
}

.thank-you-info-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}

.thank-you-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
}

.thank-you-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.thank-you-btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.thank-you-btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.thank-you-btn-primary:hover,
.thank-you-btn-secondary:hover {
    filter: brightness(0.98);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .thank-you-info-grid {
        grid-template-columns: 1fr;
    }

    .thank-you-actions {
        flex-direction: column;
    }

    .thank-you-btn {
        width: 100%;
    }
}

.daftar-card {
    position: relative;
    overflow: hidden;
}

.daftar-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, #2563eb, #10b981);
}

.daftar-head {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.daftar-head-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

.daftar-referral-box {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 14px;
    line-height: 1.6;
}

.daftar-referral-box strong {
    margin-right: 4px;
}

.daftar-referral-box span {
    font-weight: 700;
}

.daftar-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
    margin-bottom: 18px;
}

.daftar-info-card {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

.daftar-info-card h4 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #111827;
}

.daftar-info-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}

.daftar-form {
    margin-top: 8px;
}

.daftar-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-field.full {
    grid-column: 1 / -1;
}

.daftar-helper-box {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid #e5e7eb;
}

.daftar-submit-btn {
    margin-top: 18px;
}

.auth-field textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    background: #fff;
    color: #111827;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field textarea:focus {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

@media (max-width: 640px) {
    .daftar-info-grid,
    .daftar-form-grid {
        grid-template-columns: 1fr;
    }

    .auth-field.full {
        grid-column: auto;
    }
}