/* =====================================================
   NUR — Auth & Landing Page Styles
   ===================================================== */

/* ---- Landing Layout ---- */
.landing-wrap {
    display: grid;
    grid-template-columns: 1fr 480px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ---- Hero Panel ---- */
.hero-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 48px;
    position: relative;
    border-right: 1px solid rgba(52, 212, 122, 0.08);
    overflow: hidden;
    text-align: center;
}

.landing-lang-switcher {
    position: absolute;
    top: 36px;
    right: 48px;
    z-index: 10;
}

.hero-panel::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(52, 212, 122, 0.22) 35%, rgba(52, 212, 122, 0.22) 65%, transparent);
}

.logo-hero {
    align-self: flex-start;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 520px;
    padding: 20px 0 12px;
}

/* ---- Ornament ---- */
.hero-ornament {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ornament-ring {
    position: absolute;
    border-radius: 50%;
    border-style: solid;
}

.ring-outer {
    width: 180px;
    height: 180px;
    border-width: 1px;
    border-color: transparent;
    border-top-color: rgba(52, 212, 122, 0.35);
    border-right-color: rgba(200, 164, 94, 0.25);
    animation: ring-spin 18s linear infinite;
}

.ring-mid {
    width: 138px;
    height: 138px;
    border-width: 1px;
    border-color: rgba(52, 212, 122, 0.1);
    border-style: dashed;
    animation: ring-spin 26s linear infinite reverse;
}

.ring-inner {
    width: 98px;
    height: 98px;
    border-width: 1px;
    border-color: rgba(200, 164, 94, 0.22);
    animation: ring-spin 14s linear infinite;
}

@keyframes ring-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.ornament-glow {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 212, 122, 0.16) 0%, transparent 70%);
    animation: glow-pulse 3s ease-in-out infinite;
}

.ornament-arabic {
    font-family: 'Amiri', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-light);
    position: relative;
    z-index: 1;
    text-shadow: 0 0 30px rgba(200, 164, 94, 0.5);
    letter-spacing: 0.05em;
}

/* ---- Hero Copy ---- */
.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    text-align: center;
}

.hero-title-em {
    background: linear-gradient(135deg, var(--emerald-bright), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
    max-width: 400px;
}

/* ---- Ayah Block ---- */
.hero-ayah-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 440px;
}

.hero-ayah-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(200, 164, 94, 0.3), transparent);
}

.hero-ayah-ar {
    font-family: 'Amiri', serif;
    font-size: 1.3rem;
    color: var(--gold);
    line-height: 1.9;
    letter-spacing: 0.03em;
}

.hero-ayah-tr {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.7;
    font-weight: 400;
}

.hero-ayah-ref {
    font-size: 0.72rem;
    color: var(--gold);
    opacity: 0.75;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-style: normal;
}

/* ---- Hero Stats ---- */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding-top: 4px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hero-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--emerald-bright);
}

.hero-stat-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.hero-stat-div {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.07);
}

/* ---- Auth Panel ---- */
.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(7, 14, 20, 0.5);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ---- Auth Tabs ---- */
.auth-tabs {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 4px;
    gap: 2px;
}

.auth-tab {
    flex: 1;
    padding: 9px 16px;
    border-radius: 7px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.25s;
    position: relative;
    z-index: 1;
    background: none;
    border: none;
    font-family: inherit;
}

.auth-tab.active {
    color: var(--text-primary);
}

.auth-tab-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: rgba(52, 212, 122, 0.12);
    border: 1px solid rgba(52, 212, 122, 0.22);
    border-radius: 6px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-tab-slider.right {
    transform: translateX(calc(100% + 2px));
}

/* ---- Form Panels ---- */
.auth-form-panel {
    display: none;
    flex-direction: column;
    gap: 20px;
    animation: fade-up 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.auth-form-panel.active {
    display: flex;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-greeting {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.auth-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
}

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

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-forgot {
    font-size: 0.75rem;
    color: var(--emerald-bright);
    opacity: 0.8;
    transition: opacity 0.2s;
}

.form-forgot:hover {
    opacity: 1;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 13px;
    color: var(--text-muted);
    pointer-events: none;
    flex-shrink: 0;
}

.form-input {
    width: 100%;
    padding: 11px 14px 11px 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: rgba(52, 212, 122, 0.45);
    background: rgba(52, 212, 122, 0.04);
    box-shadow: 0 0 0 3px rgba(52, 212, 122, 0.08);
}

.form-input.error {
    border-color: rgba(248, 113, 113, 0.5);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.07);
}

.select-wrap {
    position: relative;
}

.form-select {
    cursor: pointer;
    padding-right: 36px;
}

.form-select option {
    background: #0b1520;
    color: var(--text-primary);
}

.form-select:invalid {
    color: var(--text-muted);
}

.select-chevron {
    position: absolute;
    right: 12px;
    color: var(--text-muted);
    pointer-events: none;
}

.input-eye {
    position: absolute;
    right: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
}

.input-eye:hover {
    color: var(--text-secondary);
}

/* Strength */
.strength-meter {
    display: flex;
    gap: 5px;
    margin-top: 2px;
}

.strength-bar {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.3s;
}

.strength-bar.weak {
    background: #f87171;
}

.strength-bar.fair {
    background: #fb923c;
}

.strength-bar.good {
    background: #facc15;
}

.strength-bar.strong {
    background: var(--emerald-bright);
}

.strength-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
    min-height: 14px;
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.form-check input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 17px;
    height: 17px;
    border-radius: 5px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.form-check input:checked+.checkmark {
    background: rgba(52, 212, 122, 0.2);
    border-color: rgba(52, 212, 122, 0.6);
}

.form-check input:checked+.checkmark::after {
    content: '';
    display: block;
    width: 8px;
    height: 5px;
    border-left: 2px solid var(--emerald-bright);
    border-bottom: 2px solid var(--emerald-bright);
    transform: rotate(-45deg) translateY(-1px);
}

.check-text {
    display: inline-block;
    flex: 1;
}

.form-check-terms {
    margin-top: -4px;
}

.form-link {
    color: var(--emerald-bright);
    opacity: 0.85;
    transition: opacity 0.2s;
}

.form-link:hover {
    opacity: 1;
}

/* Auth Button */
.btn-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 4px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-auth.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-auth-text {
    flex: 1;
    text-align: center;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

/* Social Buttons */
.social-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    transition: all 0.2s;
    font-family: inherit;
    cursor: pointer;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.14);
}

/* Switch Text */
.auth-switch-text {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.auth-switch-link {
    color: var(--emerald-bright);
    font-weight: 500;
    font-size: inherit;
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.auth-switch-link:hover {
    opacity: 1;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .landing-wrap {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        padding: 32px;
        border-right: none;
        border-bottom: 1px solid rgba(52, 212, 122, 0.08);
    }

    .hero-panel::after {
        display: none;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .auth-panel {
        padding: 32px;
    }
}

@media (max-width: 560px) {
    .hero-panel {
        padding: 24px 20px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-ornament {
        width: 140px;
        height: 140px;
    }

    .ring-outer {
        width: 140px;
        height: 140px;
    }

    .ring-mid {
        width: 108px;
        height: 108px;
    }

    .ring-inner {
        width: 76px;
        height: 76px;
    }

    .ornament-arabic {
        font-size: 1.7rem;
    }

    .auth-panel {
        padding: 16px;
    }

    .auth-card {
        padding: 24px 20px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }
}