/* ═══════════════════════════════════════════════════════════════
   ASTROLOGER PORTAL — Landing Page, Auth & Registration Form
   ═══════════════════════════════════════════════════════════════ */

/* ── Shared button & util ────────────────────────────────────── */
.apl-btn-lg {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: 0.25s ease;
    cursor: pointer;
    border: none;
}
.apl-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFC107;
    background: rgba(255,193,7,.12);
    border: 1px solid rgba(255,193,7,.3);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 16px;
}
.apl-eyebrow.accent {
    color: #6C5CE7;
    background: #EDE9FF;
    border-color: #6C5CE7;
}
.apl-field-error { color: #dc2626; font-size: 12px; margin-top: 5px; display: block; }

/* ── Landing Hero ────────────────────────────────────────────── */
.apl-hero {
    background: linear-gradient(135deg, #2D0B55 0%, #4a1580 100%);
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}
.apl-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 400px; height: 400px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
    pointer-events: none;
}
.apl-hero-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 18px;
}
.apl-hero-title span { color: #FFC107; }
.apl-hero-sub {
    font-size: 17px;
    color: rgba(255,255,255,.8);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 32px;
}
.apl-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}
.apl-btn-outline-dark {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.5);
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: 0.25s ease;
}
.apl-btn-outline-dark:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.apl-btn-outline-light {
    background: transparent;
    color: #2D0B55;
    border: 2px solid #2D0B55;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: 0.25s ease;
}
.apl-btn-outline-light:hover { background: #2D0B55; color: #fff; }
.apl-hero-trust { display: flex; flex-wrap: wrap; gap: 10px; }
.apl-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 20px;
    padding: 5px 14px;
}
.apl-trust-pill i { color: #FFC107; }

/* Hero Visual */
.apl-hero-card-wrap {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.apl-hero-stat-card {
    position: absolute;
    background: #fff;
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
    min-width: 180px;
}
.apl-hero-stat-card.top-right { top: 20px; right: 0; }
.apl-hero-stat-card.bottom-left { bottom: 20px; left: 0; }
.apl-hero-stat-card i { font-size: 24px; color: #6C5CE7; }
.apl-hero-stat-card strong { display: block; font-size: 18px; font-weight: 800; color: #2D0B55; }
.apl-hero-stat-card span { font-size: 12px; color: #6B7280; }
.apl-hero-astro-badge {
    background: linear-gradient(135deg, #6C5CE7, #2D0B55);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 6px 24px rgba(44,11,85,.12);
    max-width: 280px;
}
.apl-astro-avatar {
    width: 64px; height: 64px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #FFC107;
    flex-shrink: 0;
}
.apl-astro-info strong { display: block; color: #fff; font-size: 15px; font-weight: 700; }
.apl-astro-info span { color: rgba(255,255,255,.7); font-size: 13px; }

/* ── Stats Bar ───────────────────────────────────────────────── */
.apl-stats-bar {
    background: #EDE9FF;
    border-bottom: 1px solid #E5E7EB;
    padding: 28px 0;
}
.apl-stat-item { text-align: center; }
.apl-stat-item strong { display: block; font-size: 28px; font-weight: 800; color: #2D0B55; }
.apl-stat-item span { font-size: 13px; color: #6B7280; font-weight: 500; }

/* ── Steps Section ───────────────────────────────────────────── */
.apl-steps-section { padding: 80px 0; background: #F8F9FB; }
.apl-section-head { margin-bottom: 8px; }
.apl-section-head h2 { font-size: clamp(22px, 3vw, 34px); font-weight: 800; color: #2D0B55; margin: 10px 0; }
.apl-section-head p { color: #6B7280; font-size: 15px; max-width: 520px; margin: 0 auto; }
.apl-step-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    border: 1px solid #E5E7EB;
    position: relative;
    transition: 0.25s ease;
    height: 100%;
}
.apl-step-card:hover { box-shadow: 0 6px 24px rgba(44,11,85,.12); transform: translateY(-4px); border-color: #6C5CE7; }
.apl-step-num {
    position: absolute;
    top: -14px; left: 50%; transform: translateX(-50%);
    width: 28px; height: 28px;
    background: #FFC107;
    color: #1a0a00;
    border-radius: 50%;
    font-size: 13px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.apl-step-icon { font-size: 36px; color: #6C5CE7; margin-bottom: 14px; }
.apl-step-card h5 { font-size: 16px; font-weight: 700; color: #2D0B55; margin-bottom: 10px; }
.apl-step-card p { font-size: 14px; color: #6B7280; line-height: 1.6; margin: 0; }

/* ── Benefits ────────────────────────────────────────────────── */
.apl-benefits-section { padding: 80px 0; background: #fff; }
.apl-section-title { font-size: clamp(22px, 3vw, 32px); font-weight: 800; color: #2D0B55; margin: 12px 0 28px; }
.apl-benefit-list { display: flex; flex-direction: column; gap: 20px; }
.apl-benefit-item { display: flex; align-items: flex-start; gap: 16px; }
.apl-benefit-icon {
    width: 46px; height: 46px;
    background: #EDE9FF;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #6C5CE7;
    flex-shrink: 0;
}
.apl-benefit-item h6 { font-size: 15px; font-weight: 700; color: #1F2937; margin-bottom: 4px; }
.apl-benefit-item p { font-size: 14px; color: #6B7280; margin: 0; line-height: 1.5; }
.apl-earn-card {
    background: linear-gradient(135deg, #2D0B55, #5a1ca0);
    border-radius: 20px;
    padding: 32px;
    color: #fff;
}
.apl-earn-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.apl-earn-header i { font-size: 28px; color: #FFC107; }
.apl-earn-header h5 { margin: 0; font-size: 18px; font-weight: 700; }
.apl-earn-rows { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.apl-earn-row {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255,255,255,.1);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
}
.apl-earn-row span { color: rgba(255,255,255,.8); }
.apl-earn-row strong { color: #FFC107; font-weight: 700; }
.apl-earn-note { font-size: 12px; color: rgba(255,255,255,.6); margin: 0; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.apl-faq-section { padding: 80px 0; background: #F8F9FB; }
.apl-accordion .accordion-item {
    border: 1px solid #E5E7EB;
    border-radius: 8px !important;
    margin-bottom: 10px;
    overflow: hidden;
}
.apl-accordion .accordion-button {
    font-weight: 600; color: #1F2937;
    background: #fff; font-size: 15px;
    border-radius: 0 !important; box-shadow: none;
}
.apl-accordion .accordion-button:not(.collapsed) { color: #6C5CE7; background: #EDE9FF; }
.apl-accordion .accordion-body { font-size: 14px; color: #6B7280; line-height: 1.7; background: #fff; }

/* ── CTA Section ─────────────────────────────────────────────── */
.apl-cta-section {
    background: linear-gradient(135deg, #2D0B55, #4a1580);
    padding: 80px 0; color: #fff;
}
.apl-cta-icon { font-size: 48px; color: #FFC107; display: block; margin-bottom: 16px; }
.apl-cta-section h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin-bottom: 14px; }
.apl-cta-section p { font-size: 16px; color: rgba(255,255,255,.8); max-width: 500px; margin: 0 auto 32px; }

/* ── Auth Page (Login) ───────────────────────────────────────── */
.apl-auth-section {
    background: #F8F9FB;
    min-height: calc(100vh - 200px);
    padding: 60px 0;
}
.apl-back-link {
    color: #6C5CE7; font-size: 14px; font-weight: 600;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 4px;
    transition: 0.25s ease;
}
.apl-back-link:hover { color: #2D0B55; }
.apl-auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(44,11,85,.12);
    padding: 40px 36px;
    border: 1px solid #E5E7EB;
}
.apl-auth-card-header { text-align: center; margin-bottom: 28px; }
.apl-auth-logo-img { max-height: 52px; margin-bottom: 16px; }
.apl-auth-app-name { font-size: 22px; font-weight: 800; color: #2D0B55; display: block; margin-bottom: 12px; }
.apl-auth-card-header h2 { font-size: 22px; font-weight: 800; color: #2D0B55; margin-bottom: 6px; }
.apl-auth-card-header p { font-size: 14px; color: #6B7280; margin: 0; }
.apl-alert {
    border-radius: 8px; padding: 12px 16px;
    font-size: 14px; margin-bottom: 20px;
    display: flex; align-items: center;
}
.apl-alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.apl-alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.apl-form-group { margin-bottom: 18px; }
.apl-form-group label { display: block; font-size: 13px; font-weight: 600; color: #1F2937; margin-bottom: 7px; }
.apl-input-wrap { position: relative; display: flex; align-items: center; }
.apl-input-wrap > i.bi { position: absolute; left: 13px; color: #6B7280; font-size: 15px; z-index: 1; }
.apl-input-wrap .apl-input { padding-left: 38px; }
.apl-input {
    width: 100%;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14px;
    color: #1F2937;
    background: #F8F9FB;
    transition: 0.25s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.apl-input:focus { border-color: #6C5CE7; background: #fff; box-shadow: 0 0 0 3px rgba(108,92,231,.12); }
textarea.apl-input { resize: vertical; min-height: 100px; }
select.apl-input { cursor: pointer; }
.apl-eye-toggle {
    position: absolute; right: 12px;
    background: none; border: none; padding: 4px;
    color: #6B7280; cursor: pointer; font-size: 15px;
    line-height: 1; z-index: 1;
}
.apl-eye-toggle:hover { color: #6C5CE7; }
.apl-forgot-link { font-size: 13px; color: #6C5CE7; text-decoration: none; font-weight: 600; }
.apl-forgot-link:hover { color: #2D0B55; }
.apl-submit-btn {
    width: 100%; padding: 13px; font-size: 15px; font-weight: 700;
    border-radius: 14px; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.apl-auth-divider {
    text-align: center; margin: 24px 0 18px; position: relative;
}
.apl-auth-divider::before {
    content: ''; position: absolute; top: 50%; left: 0; right: 0;
    height: 1px; background: #E5E7EB;
}
.apl-auth-divider span {
    position: relative; background: #fff;
    padding: 0 14px; font-size: 13px; color: #6B7280;
}
.apl-auth-footer { text-align: center; }
.apl-auth-footer p { font-size: 14px; color: #6B7280; margin-bottom: 12px; }
.apl-auth-footer a { color: #6C5CE7; font-weight: 600; text-decoration: none; }
.apl-auth-footer a:hover { color: #2D0B55; }
.apl-auth-social { display: flex; gap: 12px; justify-content: center; }
.apl-auth-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: #EDE9FF; color: #6C5CE7;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; text-decoration: none; transition: 0.25s ease;
}
.apl-auth-social a:hover { background: #6C5CE7; color: #fff; }

/* ── Registration Form ───────────────────────────────────────── */
.apl-register-wrap {
    background: #F8F9FB;
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}
.apl-reg-header { margin-bottom: 40px; }
.apl-reg-header h1 { font-size: clamp(22px, 3vw, 34px); font-weight: 800; color: #2D0B55; margin: 12px 0 10px; }
.apl-reg-header p { font-size: 15px; color: #6B7280; }

/* Progress */
.apl-progress-wrap { margin-bottom: 40px; }
.apl-progress-track {
    height: 6px; background: #E5E7EB;
    border-radius: 6px; margin-bottom: 20px; overflow: hidden;
}
.apl-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6C5CE7, #FFC107);
    border-radius: 6px; transition: width .4s ease;
}
.apl-steps-row { display: flex; justify-content: space-between; }
.apl-step-dot { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.apl-dot-circle {
    width: 36px; height: 36px; border-radius: 50%;
    background: #E5E7EB; color: #6B7280;
    font-size: 14px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: 0.25s ease;
}
.apl-step-dot.done .apl-dot-circle { background: #6C5CE7; color: #fff; }
.apl-step-dot.active .apl-dot-circle { background: #FFC107; color: #1a0a00; box-shadow: 0 0 0 4px rgba(255,193,7,.25); }
.apl-step-dot span { font-size: 12px; font-weight: 600; color: #6B7280; }
.apl-step-dot.done span, .apl-step-dot.active span { color: #2D0B55; }

/* Form Card */
.apl-form-card {
    background: #fff; border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    border: 1px solid #E5E7EB;
    padding: 36px; margin-bottom: 24px;
}
.apl-form-card-head {
    display: flex; align-items: flex-start; gap: 16px;
    margin-bottom: 28px; padding-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
}
.apl-form-card-icon {
    width: 50px; height: 50px;
    background: #EDE9FF; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #6C5CE7; flex-shrink: 0;
}
.apl-form-card-head h4 { font-size: 18px; font-weight: 800; color: #2D0B55; margin-bottom: 4px; }
.apl-form-card-head p { font-size: 14px; color: #6B7280; margin: 0; }
.apl-field { margin-bottom: 4px; }
.apl-field label { display: block; font-size: 13px; font-weight: 600; color: #1F2937; margin-bottom: 7px; }
.apl-field label .req { color: #dc2626; }

/* Skills checkboxes */
.apl-check-group {
    background: #F8F9FB; border: 1px solid #E5E7EB;
    border-radius: 14px; padding: 20px; height: 100%;
}
.apl-check-label {
    font-size: 14px; font-weight: 700; color: #2D0B55;
    margin-bottom: 14px; display: flex; align-items: center;
}
.apl-check-label .req { color: #dc2626; }
.apl-checkbox-item {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px; cursor: pointer;
    font-size: 14px; color: #1F2937;
    padding: 7px 10px; border-radius: 8px;
    transition: 0.25s ease;
}
.apl-checkbox-item:hover { background: #EDE9FF; color: #6C5CE7; }
.apl-checkbox-item input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: #6C5CE7; cursor: pointer; flex-shrink: 0;
}

/* Terms */
.apl-terms-check {
    display: flex; align-items: flex-start; gap: 10px;
    background: #EDE9FF; border: 1px solid #6C5CE7;
    border-radius: 8px; padding: 14px 16px;
}
.apl-terms-check input[type="checkbox"] {
    width: 17px; height: 17px;
    accent-color: #6C5CE7; flex-shrink: 0; margin-top: 2px; cursor: pointer;
}
.apl-terms-check label { font-size: 13px; color: #1F2937; margin: 0; cursor: pointer; line-height: 1.5; }
.apl-terms-check a { color: #6C5CE7; font-weight: 600; text-decoration: underline; }

/* Upload boxes */
.apl-upload-box {
    background: #F8F9FB; border: 2px dashed #E5E7EB;
    border-radius: 14px; padding: 24px 20px;
    text-align: center; transition: 0.25s ease; height: 100%;
}
.apl-upload-box:hover { border-color: #6C5CE7; background: #EDE9FF; }
.apl-upload-icon { font-size: 30px; color: #6C5CE7; margin-bottom: 10px; }
.apl-upload-label { display: block; font-size: 14px; font-weight: 700; color: #2D0B55; margin-bottom: 10px; }
.apl-upload-label .req { color: #dc2626; }
.apl-file-input {
    width: 100%; font-size: 13px; padding: 8px;
    border: 1px solid #E5E7EB; border-radius: 8px;
    background: #fff; cursor: pointer;
}

/* Form actions */
.apl-form-actions {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 32px; padding-top: 24px; border-top: 1px solid #E5E7EB;
}
.apl-form-btn {
    padding: 13px 28px; font-size: 15px; font-weight: 700;
    border-radius: 14px; border: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.apl-btn-ghost {
    background: none; border: 1.5px solid #E5E7EB;
    color: #6B7280; padding: 11px 22px; font-size: 14px; font-weight: 600;
    border-radius: 14px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px; transition: 0.25s ease;
}
.apl-btn-ghost:hover { border-color: #6C5CE7; color: #6C5CE7; }
.apl-btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, #2D0B55 0%, #6C5CE7 100%);
    color: #fff; font-weight: 700; font-size: 16px;
    padding: 14px 32px; border-radius: 14px; border: none;
    cursor: pointer; transition: 0.25s ease;
    box-shadow: 0 6px 20px rgba(108,92,231,.35);
    letter-spacing: 0.3px;
}
.apl-btn-primary:hover {
    background: linear-gradient(135deg, #3d1270 0%, #7c6ef7 100%);
    box-shadow: 0 10px 28px rgba(108,92,231,.50);
    transform: translateY(-2px);
    color: #fff;
}
.apl-btn-primary:disabled {
    opacity: 0.7; cursor: not-allowed; transform: none;
}

/* Success */
.apl-success-card { padding: 60px 40px; }
.apl-success-icon { font-size: 72px; color: #10B981; margin-bottom: 20px; }
.apl-success-card h2 { font-size: 28px; font-weight: 800; color: #2D0B55; margin-bottom: 16px; }
.apl-success-msg { font-size: 16px; color: #6B7280; line-height: 1.7; max-width: 480px; margin: 0 auto 32px; }
.apl-success-steps {
    display: flex; justify-content: center;
    gap: 24px; margin-bottom: 10px; flex-wrap: wrap;
}
.apl-success-step { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #1F2937; }
.apl-success-step span {
    width: 28px; height: 28px; background: #6C5CE7; color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .apl-hero { padding: 50px 0 40px; }
    .apl-hero-actions { flex-direction: column; }
    .apl-btn-lg, .apl-btn-outline-dark, .apl-btn-outline-light { width: 100%; justify-content: center; }
    .apl-form-card { padding: 24px 18px; }
    .apl-auth-card { padding: 28px 20px; }
    .apl-steps-row { gap: 4px; }
    .apl-step-dot span { font-size: 10px; }
    .apl-dot-circle { width: 30px; height: 30px; font-size: 12px; }
    .apl-form-actions { flex-direction: column-reverse; gap: 12px; }
    .apl-form-actions .apl-form-btn,
    .apl-form-actions .apl-btn-ghost { width: 100%; justify-content: center; }
    .apl-success-steps { flex-direction: column; align-items: center; }
    .apl-earn-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .apl-success-card { padding: 36px 20px; }
}
