@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* =====================
   WRAPPER & BACKGROUND
   ===================== */
.al-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #020510;
    overflow: hidden;
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
}

/* Animated glows */
.al-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: al-float 8s ease-in-out infinite;
}
.al-glow-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
    top: -100px; right: -150px;
    animation-delay: 0s;
}
.al-glow-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(139,92,246,0.14) 0%, transparent 70%);
    bottom: -100px; left: -100px;
    animation-delay: -3s;
}
.al-glow-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(236,72,153,0.1) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

@keyframes al-float {
    0%, 100% { transform: translateY(0) scale(1); }
    33%       { transform: translateY(-30px) scale(1.05); }
    66%       { transform: translateY(20px) scale(0.97); }
}

/* Particles canvas */
#al-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* =====================
   CARD
   ===================== */
.al-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 520px;
    background: rgba(10, 12, 30, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 28px;
    padding: 48px 44px;
    backdrop-filter: blur(24px);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 32px 80px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.06);
    animation: al-card-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes al-card-in {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.al-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(99,102,241,0.3), transparent 50%, rgba(236,72,153,0.15));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s;
}
.al-card:hover::before { opacity: 1; }

/* =====================
   HEADER
   ===================== */
.al-card-header {
    text-align: center;
    margin-bottom: 36px;
}

.al-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99,102,241,0.12);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 100px;
    padding: 5px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #a5b4fc;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 18px;
    animation: al-pulse-badge 2.5s ease-in-out infinite;
}
.al-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: #6366f1;
    border-radius: 50%;
    box-shadow: 0 0 8px #6366f1;
    animation: al-blink 1.5s ease-in-out infinite;
}
@keyframes al-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.al-title {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 60%, #e879f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.al-subtitle {
    font-size: 14.5px;
    color: rgba(255,255,255,0.45);
    margin: 0 0 24px;
    line-height: 1.6;
}

.al-header-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #e879f9);
    border-radius: 2px;
    margin: 0 auto;
}

/* =====================
   FIELDS
   ===================== */
.al-form { display: flex; flex-direction: column; gap: 20px; }

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

.al-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.02em;
}
.al-label-icon {
    width: 16px; height: 16px;
    color: #6366f1;
    flex-shrink: 0;
}
.al-label-icon svg { width: 100%; height: 100%; }

.al-input-wrap { position: relative; }

.al-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px 18px;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    color: #fff;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    direction: rtl;
}
.al-input::placeholder { color: rgba(255,255,255,0.2); }
.al-input:focus {
    background: rgba(99,102,241,0.06);
    border-color: rgba(99,102,241,0.5);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1), inset 0 1px 0 rgba(255,255,255,0.05);
}
.al-input:hover:not(:focus) { border-color: rgba(255,255,255,0.16); }

/* Select */
.al-select { appearance: none; cursor: pointer; }
.al-select-wrap { position: relative; }
.al-select-arrow {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    color: rgba(255,255,255,0.3);
    pointer-events: none;
    transition: transform 0.3s;
}
.al-select-arrow svg { width: 100%; height: 100%; }
.al-select:focus + .al-select-arrow { color: #6366f1; }

.al-select option {
    background: #0d0f24;
    color: #fff;
}

/* =====================
   BUTTON
   ===================== */
.al-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #e879f9 100%);
    border: none;
    border-radius: 14px;
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.3s;
    margin-top: 4px;
    box-shadow: 0 8px 32px rgba(99,102,241,0.35);
}
.al-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(99,102,241,0.5);
}
.al-button:active { transform: translateY(0); }

.al-button-icon {
    width: 20px; height: 20px;
    transition: transform 0.3s;
}
.al-button-icon svg { width: 100%; height: 100%; }
.al-button:hover .al-button-icon { transform: translateX(-4px); }

.al-button-shine {
    position: absolute;
    top: -50%; left: -60%;
    width: 40%; height: 200%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}
.al-button:hover .al-button-shine { left: 130%; }

/* =====================
   TRUST FOOTER
   ===================== */
.al-footer-trust {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.al-footer-trust span {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    font-weight: 500;
}

/* =====================
   ERROR
   ===================== */
.al-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fca5a5;
    font-size: 14px;
    text-align: center;
    margin-bottom: 4px;
}

/* =====================
   SUCCESS
   ===================== */
.al-success {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 400px;
    animation: al-card-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.al-success-icon {
    width: 80px; height: 80px;
    margin: 0 auto 24px;
    color: #6366f1;
    animation: al-success-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}
.al-success-icon svg { width: 100%; height: 100%; }

@keyframes al-success-bounce {
    from { transform: scale(0) rotate(-20deg); opacity: 0; }
    to   { transform: scale(1) rotate(0deg);  opacity: 1; }
}

.al-success-title {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 12px;
}

.al-success-text {
    font-size: 16px;
    color: rgba(255,255,255,0.45);
    margin: 0 0 32px;
}

.al-success-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.al-success-dots span {
    width: 8px; height: 8px;
    background: #6366f1;
    border-radius: 50%;
    animation: al-dot-bounce 1.2s ease-in-out infinite;
}
.al-success-dots span:nth-child(2) { animation-delay: 0.2s; background: #8b5cf6; }
.al-success-dots span:nth-child(3) { animation-delay: 0.4s; background: #e879f9; }

@keyframes al-dot-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30%            { transform: translateY(-12px); }
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 560px) {
    .al-card { padding: 32px 24px; }
    .al-title { font-size: 26px; }
    .al-footer-trust { gap: 10px; }
    .al-footer-trust span { font-size: 11px; }
}

/* =====================
   NAKED SHORTCODE
   Keep wrapper + glow + particles, remove the card box
   ===================== */

/* al-nocard: same layout as al-card but transparent — no box */
.al-nocard {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 520px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 48px 44px;
    box-shadow: none;
    backdrop-filter: none;
    animation: al-card-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (max-width: 560px) {
    .al-nocard { padding: 32px 24px; }
}
