/* =============================================================================
   WALIIN LEARN — Auth Pages (Login & Register)
   =============================================================================
   Emerald theme converted from React/Framer Motion to pure CSS animations
   ============================================================================= */

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

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Page Background ──────────────────────────────────────────────────────── */
.la-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    width: 100%;
    background: #ecfdf5;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.la-page--register {
    padding-top: 48px;
    padding-bottom: 48px;
}

/* ── Animated Background Shapes ───────────────────────────────────────────── */
.la-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.la-bg-shape {
    position: absolute;
}

.la-bg-shape svg {
    color: #a7f3d0;
}

/* Rotating square */
.la-bg-shape--sq {
    top: 50px;
    right: 60px;
    width: 100px;
    height: 100px;
    animation: laRotate 25s linear infinite;
}

/* Pulsing triangle */
.la-bg-shape--tri {
    bottom: 100px;
    left: 60px;
    width: 90px;
    height: 90px;
    animation: laPulse 3s ease-in-out infinite;
}

/* Wavy line */
.la-bg-shape--wave {
    top: 50%;
    left: 30px;
    width: 120px;
    height: 80px;
}

.la-bg-shape--wave svg path {
    stroke-dasharray: 5 5;
    animation: laDash 4s linear infinite;
}

@keyframes laRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes laPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes laDash {
    to { stroke-dashoffset: -40; }
}

/* ── Floating Emojis ──────────────────────────────────────────────────────── */
.la-emoji {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.la-emoji--1 {
    top: 25%;
    left: 50px;
    font-size: 36px;
    animation: laFloat 4s ease-in-out infinite;
}

.la-emoji--2 {
    bottom: 20%;
    right: 70px;
    font-size: 30px;
    animation: laWobble 3s ease-in-out infinite;
}

.la-emoji--3 {
    top: 18%;
    right: 100px;
    font-size: 24px;
    animation: laBounce 2.5s ease-in-out infinite;
}

@keyframes laFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes laWobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

@keyframes laBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ── Container ────────────────────────────────────────────────────────────── */
.la-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 460px;
    animation: laFadeUp 0.6s ease-out;
}

.la-container--register {
    max-width: 680px;
}

@keyframes laFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Logo Section ─────────────────────────────────────────────────────────── */
.la-logo-section {
    text-align: center;
    margin-bottom: 28px;
    animation: laLogoIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes laLogoIn {
    from { opacity: 0; transform: scale(0.5) rotate(180deg); }
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.la-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: #059669;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
    margin-bottom: 16px;
    transform: rotate(-6deg);
    transition: transform 0.3s ease;
}

.la-logo:hover {
    transform: rotate(0deg) scale(1.05);
}

.la-logo svg {
    color: #fff;
}

.la-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #064e3b;
    margin-bottom: 6px;
}

.la-subheading {
    font-size: 15px;
    color: #047857;
}

/* ── Form Card ────────────────────────────────────────────────────────────── */
.la-card {
    background: #fff;
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 3px solid #a7f3d0;
    transform: rotate(-0.5deg);
    animation: laCardIn 0.6s ease-out 0.3s both;
}

@keyframes laCardIn {
    from { opacity: 0; transform: rotate(-0.5deg) scale(0.95); }
    to { opacity: 1; transform: rotate(-0.5deg) scale(1); }
}

/* ── Form Elements ────────────────────────────────────────────────────────── */
.la-form { display: flex; flex-direction: column; gap: 18px; }

.la-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.la-field {}

.la-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #064e3b;
    margin-bottom: 8px;
}

.la-label svg {
    width: 16px;
    height: 16px;
    color: #059669;
}

.la-input,
.la-select {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #86efac;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: rgba(236, 253, 245, 0.5);
    color: #064e3b;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.la-input:focus,
.la-select:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.la-input::placeholder {
    color: #6ee7b7;
}

/* Password wrapper */
.la-password-wrap {
    position: relative;
}

.la-password-wrap .la-input {
    padding-right: 48px;
}

.la-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #059669;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.la-password-toggle:hover {
    color: #047857;
}

/* Remember & Forgot row */
.la-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.la-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #047857;
    cursor: pointer;
}

.la-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #059669;
    border-radius: 4px;
    cursor: pointer;
}

.la-forgot-link {
    color: #059669;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.la-forgot-link:hover {
    color: #047857;
}

/* Terms box */
.la-terms-box {
    background: #ecfdf5;
    border: 2px solid #a7f3d0;
    border-radius: 14px;
    padding: 14px 18px;
}

.la-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: #064e3b;
    line-height: 1.5;
}

.la-terms-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #059669;
    margin-top: 2px;
    flex-shrink: 0;
}

.la-terms-label a {
    color: #059669;
    font-weight: 700;
    text-decoration: none;
}

.la-terms-label a:hover {
    text-decoration: underline;
}

/* Submit button */
.la-submit {
    width: 100%;
    padding: 16px 24px;
    background: #059669;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
    transition: all 0.3s ease;
}

.la-submit:hover {
    background: #047857;
    transform: translateY(-2px) rotate(0.5deg);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.35);
}

.la-submit:active {
    transform: translateY(0) scale(0.98);
}

/* ── Divider ──────────────────────────────────────────────────────────────── */
.la-divider {
    position: relative;
    margin: 24px 0;
    text-align: center;
}

.la-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #d1fae5;
}

.la-divider span {
    position: relative;
    background: #fff;
    color: #059669;
    font-size: 13px;
    font-weight: 600;
    padding: 0 16px;
}

/* ── Social Buttons ───────────────────────────────────────────────────────── */
.la-social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.la-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 16px;
    border: 2px solid #86efac;
    border-radius: 14px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #064e3b;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.la-social-btn:hover {
    background: #ecfdf5;
    transform: scale(1.03);
}

/* ── Error Alert ──────────────────────────────────────────────────────────── */
.la-error {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    padding: 12px 16px;
    color: #991b1b;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

/* ── Footer Link ──────────────────────────────────────────────────────────── */
.la-footer {
    text-align: center;
    margin-top: 24px;
    color: #047857;
    font-size: 14px;
    animation: laFadeUp 0.6s ease-out 0.5s both;
}

.la-footer a {
    color: #059669;
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.2s;
}

.la-footer a:hover { color: #047857; }

/* ── Quote Card ───────────────────────────────────────────────────────────── */
.la-quote {
    margin-top: 28px;
    background: #d1fae5;
    border: 2px solid #86efac;
    border-radius: 18px;
    padding: 16px 20px;
    text-align: center;
    transform: rotate(0.5deg);
    animation: laFadeUp 0.6s ease-out 0.7s both;
}

.la-quote p {
    font-size: 14px;
    color: #064e3b;
    font-style: italic;
    line-height: 1.5;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .la-row {
        grid-template-columns: 1fr;
    }

    .la-heading {
        font-size: 28px;
    }

    .la-card {
        padding: 28px 22px;
    }

    .la-container--register {
        max-width: 100%;
    }

    .la-bg-shape--sq {
        top: 20px;
        right: 20px;
        width: 70px;
        height: 70px;
    }

    .la-bg-shape--tri {
        bottom: 50px;
        left: 20px;
        width: 60px;
        height: 60px;
    }

    .la-emoji--1 {
        left: 15px;
        font-size: 28px;
    }

    .la-emoji--2 {
        right: 20px;
        font-size: 24px;
    }

    .la-emoji--3 {
        display: none;
    }
}

@media (max-width: 480px) {
    .la-page {
        padding: 16px 12px;
    }

    .la-heading {
        font-size: 24px;
    }

    .la-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .la-social-row {
        grid-template-columns: 1fr;
    }

    .la-logo {
        width: 60px;
        height: 60px;
    }
}
