/* ===================================================================
   TRATOK HOSPITALITY --  Auth Pages (Login / Register)
   =================================================================== */

.auth-body {
    padding-top: 0;
    background: var(--bg-body);
    min-height: 100vh;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ─── Brand Panel (Left) ─────────────────────────────────────────── */
.auth-brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: linear-gradient(160deg, #0f0f14 0%, #1a1520 50%, #151218 100%);
    overflow: hidden;
}
.auth-brand-panel::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.auth-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.auth-brand-decoration {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='rgba(212,168,67,0.03)' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    opacity: 0.6;
    pointer-events: none;
}
.auth-brand-content {
    position: relative;
    z-index: 2;
    max-width: 420px;
}
.auth-brand-logo img {
    height: 40px;
    margin-bottom: 40px;
    opacity: 0.9;
}
.auth-brand-title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 16px;
}
.auth-brand-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}
.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.auth-brand-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.auth-brand-feature i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 168, 67, 0.08);
    border: 1px solid rgba(212, 168, 67, 0.12);
    border-radius: var(--radius-md);
    color: var(--gold-400);
    font-size: 0.82rem;
    flex-shrink: 0;
}

/* ─── Form Panel (Right) ─────────────────────────────────────────── */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: var(--bg-surface);
    overflow-y: auto;
}
.auth-form-container {
    width: 100%;
    max-width: 480px;
}
.auth-form-header {
    margin-bottom: 28px;
}
.auth-form-header h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.auth-form-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
}
.auth-form-header a {
    color: var(--gold-400);
    font-weight: 600;
}
.auth-form-header a:hover {
    color: var(--gold-300);
}

/* ─── Progress Bar ────────────────────────────────────────────────── */
.signup-progress {
    margin-bottom: 32px;
}
.progress-track {
    height: 3px;
    background: var(--border-muted);
    border-radius: 3px;
    margin-bottom: 12px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.progress-steps {
    display: flex;
    justify-content: space-between;
}
.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}
.progress-step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: 2px solid var(--border-muted);
    transition: all 0.3s ease;
}
.progress-step-circle span {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.3s ease;
}
.progress-step.active .progress-step-circle {
    border-color: var(--gold-400);
    background: rgba(212, 168, 67, 0.1);
}
.progress-step.active .progress-step-circle span {
    color: var(--gold-400);
}
.progress-step.completed .progress-step-circle {
    border-color: var(--gold-500);
    background: var(--gold-500);
}
.progress-step.completed .progress-step-circle span {
    color: var(--dark-950);
}
.progress-step-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.3s ease;
}
.progress-step.active .progress-step-label {
    color: var(--gold-400);
}
.progress-step.completed .progress-step-label {
    color: var(--text-secondary);
}

/* ─── Form Steps ──────────────────────────────────────────────────── */
.form-step {
    display: none;
    animation: stepFadeIn 0.35s ease-out;
}
.form-step.active {
    display: block;
}
@keyframes stepFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-muted);
}
.step-title > i {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 168, 67, 0.08);
    border: 1px solid rgba(212, 168, 67, 0.12);
    border-radius: var(--radius-md);
    color: var(--gold-400);
    font-size: 1rem;
    flex-shrink: 0;
}
.step-title h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.step-title p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.form-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-muted);
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}
.password-wrapper input {
    padding-right: 44px;
}
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
}
.password-toggle:hover {
    color: var(--text-primary);
}

/* Password Strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.strength-bar {
    flex: 1;
    height: 3px;
    background: var(--border-muted);
    border-radius: 3px;
    overflow: hidden;
}
.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}
.strength-text {
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 40px;
}

/* Optional Tag */
.optional-tag {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-muted);
    background: var(--bg-input);
    padding: 1px 6px;
    border-radius: var(--radius-xs);
    margin-left: 4px;
}

/* Review Card */
.review-card {
    background: var(--bg-input);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    padding: 4px 0;
    margin-bottom: 20px;
}
.review-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-subtle);
}
.review-row:last-child {
    border-bottom: none;
}
.review-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.review-value {
    font-size: 0.88rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Terms Checkbox */
.terms-check {
    margin-bottom: 8px;
}
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.checkbox-label input[type="checkbox"] {
    display: none;
}
.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-default);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.2s ease;
    position: relative;
}
.checkbox-label input:checked + .checkbox-custom {
    background: var(--gold-500);
    border-color: var(--gold-500);
}
.checkbox-label input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid var(--dark-950);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ─── Login Page Specifics ────────────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-muted);
}

.forgot-link {
    display: block;
    text-align: right;
    font-size: 0.78rem;
    color: var(--gold-400);
    margin-top: -8px;
    margin-bottom: 20px;
}
.forgot-link:hover {
    color: var(--gold-300);
}

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }
    .auth-brand-panel {
        display: none;
    }
    .auth-form-panel {
        padding: 32px 20px;
    }
    .auth-form-container {
        max-width: 100%;
    }
    .progress-step-label {
        font-size: 0.6rem;
    }
}
@media (max-width: 500px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
