/* ═══════════════════════════════════════════════════════════════
   MilkDoorDelivery — Design System
   Premium UI/UX styles — visual only, no logic
   ═══════════════════════════════════════════════════════════════ */

:root {
    --brand-50: #f0fdf4;
    --brand-100: #dcfce7;
    --brand-200: #bbf7d0;
    --brand-400: #4ade80;
    --brand-500: #22c55e;
    --brand-600: #16a34a;
    --brand-700: #15803d;
    --brand-800: #166534;
    --brand-900: #14532d;
    --ink-900: #0a1f0a;
    --ink-700: #1c3b1c;
    --ink-500: #3d5e3d;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f9fafb;
}

h1,
h2,
h3,
.font-display {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

/* Screen reader only (SEO-friendly hidden headings) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ── Custom Scrollbar ────────────────────────────────────── */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f8f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4ade80, #15803d);
    border-radius: 10px;
    border: 2px solid #f1f8f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #22c55e, #14532d);
}

/* ── Selection ───────────────────────────────────────────── */
::selection {
    background: #bbf7d0;
    color: #14532d;
}

/* ═══════════════════════════════════════════════════════════════
   HERO — RESTORED ORIGINAL BRIGHT GREEN GRADIENT
   ═══════════════════════════════════════════════════════════════ */
.hero-gradient {
    background: linear-gradient(135deg, #7ed957 0%, #2d6a4f 100%);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Soft light glow — keeps the bright, fresh feel */
.hero-gradient::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 65%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
    animation: heroGlow 10s ease-in-out infinite;
}

@keyframes heroGlow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-20px, 20px) scale(1.08);
        opacity: 0.9;
    }
}

.hero-gradient>* {
    position: relative;
    z-index: 1;
}

/* Hero eyebrow badge — light glass on bright green */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.82rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-eyebrow .pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.hero-gradient h1 {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.15);
}

.hero-gradient p {
    color: rgba(255, 255, 255, 0.94);
}

/* CTA buttons */
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow:
        0 10px 30px -8px rgba(37, 211, 102, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transition: left 0.7s;
}

.whatsapp-btn:hover::before {
    left: 100%;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: translateY(-3px);
    box-shadow:
        0 18px 40px -10px rgba(37, 211, 102, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.96);
    color: #15803d;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.25);
}

.btn-glass:hover {
    background: #ffffff;
    color: #14532d;
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.35);
}

/* Logo float */
.float-anim {
    animation: floating 4s ease-in-out infinite;
}

.logo-img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.35));
}

.float-anim:hover .logo-img {
    transform: scale(1.06) rotate(-2deg);
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-16px);
    }
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar-glass {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(20, 83, 45, 0.08);
    box-shadow: 0 1px 20px rgba(20, 83, 45, 0.04);
    transition: all 0.3s ease;
}

.nav-link {
    position: relative;
    transition: color 0.25s ease;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4ade80, #15803d);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-signup-btn {
    background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
    box-shadow: 0 6px 18px -4px rgba(21, 128, 61, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -6px rgba(21, 128, 61, 0.65);
}

/* ── Cards base ──────────────────────────────────────────── */
.card-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card-lift:hover {
    transform: translateY(-8px);
    box-shadow:
        0 30px 60px -20px rgba(20, 83, 45, 0.2),
        0 0 0 1px rgba(74, 222, 128, 0.15);
}

/* Quick feature cards */
.feature-tile {
    background: linear-gradient(145deg, #ffffff 0%, #f7fdf7 100%);
    border: 1px solid rgba(20, 83, 45, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(74, 222, 128, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.feature-tile:hover::before {
    opacity: 1;
}

.feature-tile:hover {
    transform: translateY(-10px);
    border-color: rgba(74, 222, 128, 0.35);
    box-shadow: 0 30px 60px -20px rgba(20, 83, 45, 0.22);
}

.feature-tile .emoji-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 24px;
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        0 8px 20px -8px rgba(20, 83, 45, 0.2);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-tile:hover .emoji-icon {
    transform: scale(1.08) rotate(-4deg);
}

.icon-tile {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.icon-tile::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: inherit;
    filter: blur(14px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s;
}

.icon-tile:hover::after {
    opacity: 0.55;
}

.icon-tile:hover {
    transform: scale(1.08) rotate(-3deg);
}

/* ── Phone Mockup ────────────────────────────────────────── */
.phone-mockup {
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border: 5px solid #0a0a0a;
    border-radius: 3rem;
    padding: 14px;
    box-shadow:
        0 50px 100px -20px rgba(20, 83, 45, 0.35),
        0 30px 60px -30px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
}

.phone-mockup::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.phone-screen {
    border-radius: 2rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Slide dots */
.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    padding: 0;
}

.slide-dot.active {
    width: 28px;
    background: linear-gradient(90deg, #4ade80, #15803d);
    box-shadow: 0 2px 8px rgba(21, 128, 61, 0.4);
}

/* Slide nav buttons */
.slide-nav-btn {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px -8px rgba(20, 83, 45, 0.3);
    color: #14532d;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.slide-nav-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 15px 40px -10px rgba(20, 83, 45, 0.4);
    color: #15803d;
}

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-card {
    background: #ffffff;
    border: 1.5px solid #e5f0e5;
    border-radius: 24px;
    padding: 32px 26px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4ade80, #15803d, #4ade80);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(74, 222, 128, 0.5);
    box-shadow: 0 40px 70px -25px rgba(20, 83, 45, 0.28);
}

.pricing-card.popular {
    border-color: rgba(74, 222, 128, 0.6);
    box-shadow: 0 30px 60px -20px rgba(20, 83, 45, 0.2);
    transform: scale(1.03);
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-10px);
}

.pricing-card .plan-price {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #15803d, #14532d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #3d5e3d;
    font-size: 0.875rem;
    padding: 5px 0;
}

.pricing-card ul li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: linear-gradient(145deg, #dcfce7, #bbf7d0);
    color: #15803d;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.popular-ribbon {
    position: absolute;
    top: 16px;
    right: -32px;
    background: linear-gradient(135deg, #15803d, #14532d);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 6px 40px;
    transform: rotate(38deg);
    letter-spacing: 0.06em;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.4);
}

/* ── Enquiry Form ────────────────────────────────────────── */
.enquiry-card {
    background: #ffffff;
    border: 1px solid rgba(20, 83, 45, 0.08);
    border-radius: 28px;
    box-shadow:
        0 30px 60px -30px rgba(20, 83, 45, 0.15),
        0 20px 40px -20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    font-size: 0.9rem;
    background: rgba(249, 253, 249, 0.85);
    border: 1.5px solid #e5f0e5;
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #0a1f0a;
}

.form-input:focus {
    outline: none;
    background: #ffffff;
    border-color: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15);
}

.form-input::placeholder {
    color: #9ca89c;
}

.form-input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #8ea58e;
    font-size: 0.85rem;
    pointer-events: none;
    transition: color 0.25s;
}

.form-input:focus~.form-input-icon {
    color: #15803d;
}

.form-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #4b684b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.enquiry-submit-btn {
    background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
    box-shadow:
        0 12px 28px -8px rgba(21, 128, 61, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.enquiry-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.7s;
}

.enquiry-submit-btn:hover::before {
    left: 100%;
}

.enquiry-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 20px 40px -10px rgba(21, 128, 61, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   CTA SECTION — RESTORED BRIGHT GREEN (matches hero)
   ═══════════════════════════════════════════════════════════════ */
.cta-gradient {
    background: linear-gradient(135deg, #2d6a4f 0%, #7ed957 100%);
    position: relative;
    overflow: hidden;
}

.cta-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    pointer-events: none;
}

.cta-gradient>* {
    position: relative;
    z-index: 1;
}

/* Alias — if any older markup still uses .cta-dark, apply the bright version */
.cta-dark {
    background: linear-gradient(135deg, #2d6a4f 0%, #7ed957 100%);
    position: relative;
    overflow: hidden;
}

.cta-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    pointer-events: none;
}

.cta-dark>* {
    position: relative;
    z-index: 1;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer-link {
    position: relative;
    transition: all 0.25s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #15803d;
}

/* ── Utility animations ──────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-up {
    animation: fadeUp 0.7s ease-out both;
}

/* Select styling */
.mdd-lang-sel {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 28px !important;
    transition: all 0.25s ease;
}

.mdd-lang-sel:hover {
    border-color: #4ade80;
}

.mdd-lang-sel:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .pricing-card.popular {
        transform: none;
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}

/* ── Reduced motion (accessibility) ──────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY — WCAG 2.2 AA/AAA additions
   ═══════════════════════════════════════════════════════════════ */

/* ── WCAG 2.4.1: Skip link (visible only on keyboard focus) ── */
.skip-link {
    position: absolute;
    top: -100px;
    left: 8px;
    z-index: 9999;
    background: linear-gradient(135deg, #15803d, #14532d);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.4);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 8px;
    outline: 3px solid #4ade80;
    outline-offset: 2px;
}

/* ── WCAG 2.4.11: Focus not obscured by sticky nav ── */
html {
    scroll-padding-top: 90px;
}

/* ── WCAG 2.4.7: Focus visible ring on all interactive elements ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #4ade80;
    outline-offset: 2px;
    border-radius: 6px;
}

/* ── WCAG 2.5.5 (AAA): Touch target size ≥ 44×44 ── */
.slide-dot {
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
    padding: 16px;
    box-sizing: content-box;
    background-clip: content-box;
}

.slide-dot.active {
    width: 32px;
    min-width: 32px;
}

/* ── Slideshow pause button: match nav-btn styling ── */
#slide-pause {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#slide-pause:hover {
    transform: scale(1.1);
}

/* ── Carousel region focus outline ── */
#slideshow-container:focus-visible {
    outline: 3px solid #4ade80;
    outline-offset: -4px;
    border-radius: 2rem;
}

/* ── Legal pages prose ── */
.prose-mdd {
    font-size: 1rem;
    line-height: 1.75;
    color: #3d4a3d;
}

.prose-mdd h2 {
    color: #0a1f0a;
    margin-top: 0;
}

.prose-mdd strong {
    color: #1a2e1a;
    font-weight: 600;
}

.prose-mdd a {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* ── WCAG 1.4.12: Enhanced text spacing on demand ── */
@media (prefers-contrast: more) {

    .feature-tile,
    .pricing-card,
    .enquiry-card {
        border-width: 2px;
        border-color: #14532d;
    }

    .text-gray-500,
    .text-gray-600 {
        color: #1c3b1c !important;
    }
}

/* ── WCAG 2.3.3: Reduced motion — full coverage ── */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .float-anim,
    .hero-gradient::after,
    .pulse-dot,
    .animate-pulse {
        animation: none !important;
    }

    .whatsapp-btn::before,
    .enquiry-submit-btn::before {
        display: none;
    }
}

/* ── WCAG 1.4.11: Non-text contrast on active tab ── */
.tab-active {
    border-bottom-color: #14532d !important;
}

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES — Login & Register shared components
   ═══════════════════════════════════════════════════════════════ */

/* ── Auth card wrapper (light, clean) ── */
.auth-card {
    background: #ffffff;
    border: 1px solid #e8f0e8;
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow:
        0 8px 32px -12px rgba(20, 83, 45, 0.08),
        0 2px 8px -2px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

@media (max-width: 640px) {
    .auth-card {
        padding: 32px 22px;
        border-radius: 20px;
    }
}

/* Soft green accent at top */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            transparent 0%,
            #4ade80 20%,
            #15803d 50%,
            #4ade80 80%,
            transparent 100%);
}

/* ── Icon badge (lighter, softer) ── */
.auth-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #bbf7d0;
    border-radius: 18px;
    font-size: 1.75rem;
    margin-bottom: 16px;
    box-shadow:
        0 8px 20px -8px rgba(21, 128, 61, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* ── Notice banner ── */
.auth-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 0.82rem;
    color: #14532d;
    line-height: 1.5;
}

.auth-notice i {
    color: #15803d;
    font-size: 0.9rem;
}

/* ── Error banner (WCAG 3.3.1) ── */
.auth-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.82rem;
    color: #991b1b;
    line-height: 1.5;
    animation: shakeError 0.35s ease-out;
}

.auth-error i {
    color: #dc2626;
    font-size: 0.9rem;
}

@keyframes shakeError {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

/* ── Phone input group ── */
.phone-input-group {
    display: flex;
    border: 1.5px solid #e5f0e5;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(249, 253, 249, 0.85);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-input-group:focus-within {
    background: #ffffff;
    border-color: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15);
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: #f3f9f3;
    border-right: 1.5px solid #e5f0e5;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b684b;
    white-space: nowrap;
}

.phone-input-field {
    flex: 1;
    padding: 14px 16px;
    font-size: 1rem;
    background: transparent;
    border: none;
    outline: none;
    color: #0a1f0a;
    letter-spacing: 0.02em;
}

.phone-input-field::placeholder {
    color: #9ca89c;
    letter-spacing: normal;
}

.phone-input-field:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Simple form input (register page) ── */
.form-input-simple {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.9rem;
    background: rgba(249, 253, 249, 0.85);
    border: 1.5px solid #e5f0e5;
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #0a1f0a;
}

.form-input-simple:focus {
    outline: none;
    background: #ffffff;
    border-color: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15);
}

.form-input-simple::placeholder {
    color: #9ca89c;
}

/* ── Submit button ── */
.auth-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 16px 24px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    box-shadow:
        0 12px 28px -8px rgba(21, 128, 61, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.7s;
}

.auth-submit-btn:hover::before {
    left: 100%;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 20px 40px -10px rgba(21, 128, 61, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.auth-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 6px 16px -4px rgba(21, 128, 61, 0.35);
}

/* ── Perks list ── */
.auth-perks {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 24px;
    list-style: none;
}

.auth-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: #14532d;
    padding: 4px 0;
}

.auth-perks li i {
    color: #15803d;
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

/* ── How it works section ── */
.auth-howto {
    background: linear-gradient(145deg, #fafcfa 0%, #f3f9f3 100%);
    border: 1px solid #e5f0e5;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 24px;
}

.auth-howto-block {
    margin-bottom: 14px;
}

.auth-howto-block:last-child {
    margin-bottom: 0;
}

.auth-howto-role {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.role-provider {
    color: #15803d;
}

.role-consumer {
    color: #1d4ed8;
}

.auth-howto-steps {
    list-style: none;
    padding-left: 4px;
}

.auth-howto-steps li {
    font-size: 0.75rem;
    color: #4b5563;
    padding: 2px 0;
    line-height: 1.5;
}

.auth-howto-note {
    font-size: 0.72rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 8px;
    line-height: 1.5;
}

/* ── Password rules checklist ── */
.password-rules {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #f9fdf9;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e5f0e5;
}

/* ═══════════════════════════════════════════════════════════════
   PASSWORD RULES — Real-time visual feedback
   Unmet = red, Met = green
   ═══════════════════════════════════════════════════════════════ */

/* Default state: RED (unmet) — always visible */
.rule-item,
.rule-item i,
.rule-item span {
    color: #dc2626 !important;
    /* Tailwind red-600 */
    transition: color 0.25s ease, transform 0.25s ease;
}

.rule-item i {
    color: #dc2626 !important;
    transform: scale(1);
}

/* Met state: GREEN */
.rule-item.valid,
.rule-item.valid i,
.rule-item.valid span {
    color: #15803d !important;
    /* brand green */
    font-weight: 500;
}

.rule-item.valid i {
    color: #15803d !important;
    transform: scale(1.15);
}

/* ═══════════════════════════════════════════════════════════════
   FIELD-LEVEL INLINE ERRORS (WCAG 3.3.1)
   ═══════════════════════════════════════════════════════════════ */
.field-error {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #dc2626 !important;
    /* force red */
    margin-top: 6px;
    padding-left: 2px;
    line-height: 1.4;
    animation: fieldErrorIn 0.25s ease-out;
}

.field-error[hidden] {
    display: none;
}

/* Red border + background on invalid inputs */
.input-invalid,
.form-input-simple.input-invalid,
.phone-input-field.input-invalid {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
    color: #7f1d1d !important;
}

/* Red border on the phone-input-group wrapper when child has .input-invalid */
.phone-input-group:has(.input-invalid) {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

.input-invalid:focus,
.form-input-simple.input-invalid:focus,
.phone-input-group:has(.input-invalid):focus-within {
    outline: none !important;
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.18) !important;
    background-color: #ffffff !important;
}

/* Red placeholder on invalid inputs */
.input-invalid::placeholder {
    color: #f87171 !important;
}

/* ═══════════════════════════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════════════════════════ */
@keyframes fieldErrorIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

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

/* ═══════════════════════════════════════════════════════════════
   Reduced motion
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .field-error {
        animation: none !important;
    }

    .rule-item,
    .rule-item i {
        transition: none !important;
    }
}

/* ── Language toggle buttons ── */
.lang-btn {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1.5px solid #e5f0e5;
    background: #ffffff;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
}

.lang-btn:hover {
    border-color: #4ade80;
    background: #f0fdf4;
}

.lang-btn.active-lang {
    background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
    color: #ffffff;
    border-color: #15803d;
    box-shadow: 0 6px 16px -4px rgba(21, 128, 61, 0.5);
}

.lang-btn:focus-visible {
    outline: 3px solid #4ade80;
    outline-offset: 2px;
}

/* ── Trust badges ── */
.auth-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f5f0;
    font-size: 0.72rem;
    color: #6b7280;
    list-style: none;
}

.auth-trust-badges i {
    color: #15803d;
    margin-right: 4px;
    font-size: 0.75rem;
}

/* ── Card animation ── */
.card-anim {
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* ── Success card animation ── */
.success-anim {
    animation: popIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {

    .auth-icon-badge,
    .card-anim,
    .success-anim,
    .auth-error {
        animation: none !important;
    }

    .auth-submit-btn::before {
        display: none;
    }
}