/* /assets/css/landing.css */
/* Darkweb-style landing: deep teal background, off-white title with teal halo, tiny ENTER word.
   Half-earth backdrop is drawn in pure CSS at the very top (bottom curve only visible). */

:root {
    --color-bg: #02060a;                            /* base black/blue */
    --color-bg-soft: #07131b;                       /* soft teal for gradients */
    --color-main: #e3edf5;                          /* off-white title text */
    --color-accent: #46c3f5;                        /* teal/cyan accent (ENTER, highlights) */
    --color-gray-light: #c3ccd7;
    --color-gray: #7e8995;
    --color-panel-bg: #050b12;
    --color-panel-border: rgba(70, 195, 245, 0.33);
}

/* Global reset / base */

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

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body.landing {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 0%, #162635 0%, var(--color-bg-soft) 38%, #02060a 70%, #000000 100%);
    color: var(--color-gray-light);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* slight dark vignette over everything */

body.landing::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 40%, transparent 0%, transparent 50%, rgba(0, 0, 0, 0.75) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Half-earth backdrop at very top (only bottom curve is visible in the frame) */

body.landing::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
    width: 180vmin;
    height: 180vmin;
    left: 50%;
    top: -130vmin; /* pushes most of the sphere above the viewport */
    transform: translateX(-50%);
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(140, 158, 176, 0.95) 0%,
            rgba(104, 122, 140, 0.95) 26%,
            rgba(70, 88, 106, 0.92) 40%,
            rgba(36, 50, 64, 0.9) 55%,
            rgba(10, 18, 26, 0.75) 68%,
            rgba(2, 6, 10, 0.0) 82%,
            transparent 100%
        );
    box-shadow:
        0 0 60px rgba(0, 0, 0, 0.95),
        0 0 120px rgba(70, 195, 245, 0.35);
}

/* Root shell */

.landing-root {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Hero (TITLE + ENTER – text stack; globe backdrop handled by body::after) */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    transform: translateY(-2vh); /* slightly ABOVE center so ARCAREX hugs bottom of the circle */
}

/* Globe logo element in HTML is not used; backdrop is global */

.hero-globe {
    display: none;
}

/* Title – bigger, sharper glow, smooth fade + scale in */

.hero-title {
    margin: 0;
    letter-spacing: 0.30em;
    text-indent: 0.30em;
    font-size: clamp(26px, 2.6vw, 34px);   /* bigger title */
    color: var(--color-main);
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(-14px) scale(0.97);
    text-shadow:
        0 0 2px rgba(0, 0, 0, 1),
        0 0 4px rgba(70, 195, 245, 0.7),
        0 0 10px rgba(70, 195, 245, 0.45),
        0 0 18px rgba(70, 195, 245, 0.25); /* tighter halo for a sharper look */
    animation: hero-fade-scale-in 1.2s ease-out 0.45s forwards;
}

/* No tagline text at all */

.hero-tagline {
    display: none;
}

/* ENTER – sits further below the wave, with gentle pulse */

.hero-enter {
    padding: 0;
    border: none;
    background: transparent;
    color: var(--color-accent);
    font-size: 0.72rem;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
    opacity: 0;
    transform: translateY(6px);
    margin-top: 34px; /* more space between ARCAREX and ENTER so ENTER is clearly outside the wave */
    text-shadow:
        0 0 3px rgba(70, 195, 245, 0.9),
        0 0 7px rgba(70, 195, 245, 0.45);
    animation:
        hero-fade-up 1s ease-out 0.95s forwards,
        enter-pulse 4s ease-in-out 2.2s infinite;
    transition:
        color 0.2s ease-out,
        text-shadow 0.2s ease-out;
}

.hero-enter:hover,
.hero-enter:focus-visible {
    text-shadow:
        0 0 4px rgba(70, 195, 245, 0.95),
        0 0 9px rgba(70, 195, 245, 0.65);
}

/* Auth panel (Login / Register shell) – same structure, re-themed colors */

.auth-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(420px, 92vw);
    transform: translate(-50%, -50%) scale(0.98);
    transform-origin: center;
    background:
        radial-gradient(circle at top, rgba(70, 195, 245, 0.14), transparent 70%),
        var(--color-panel-bg);
    border-radius: 16px;
    border: 1px solid var(--color-panel-border);
    box-shadow:
        0 0 34px rgba(0, 0, 0, 0.95),
        0 0 40px rgba(70, 195, 245, 0.25);
    padding: 24px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    transition:
        opacity 0.25s ease-out,
        transform 0.25s ease-out;
}

.auth-panel--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

/* Panel headings */

.auth-heading {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-main);
}

.auth-subheading {
    margin: 0 0 4px;
    font-size: 0.8rem;
    color: var(--color-gray);
}

/* Forms */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 260px;
}

.auth-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gray);
}

/* Inputs + selects */

.auth-input,
.auth-select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #1b2732;
    background-color: rgba(4, 10, 17, 0.96);
    color: var(--color-gray-light);
    font-size: 0.9rem;
    outline: none;
    transition:
        border-color 0.2s ease-out,
        box-shadow 0.2s ease-out,
        background-color 0.2s ease-out;
}

.auth-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--color-gray) 50%),
        linear-gradient(135deg, var(--color-gray) 50%, transparent 50%);
    background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.auth-input:focus,
.auth-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px rgba(70, 195, 245, 0.4);
    background-color: #040a12;
}

    flex: 1;
    min-width: 0;
}

/* Actions */

.auth-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.auth-button {
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--color-panel-border);
    background-color: transparent;
    color: var(--color-accent);
    font-size: 0.78rem;
    text-transform: none;
    letter-spacing: 0.06em;
    cursor: pointer;
    outline: none;
    transition:
        background-color 0.18s ease-out,
        color 0.18s ease-out,
        box-shadow 0.18s ease-out,
        transform 0.18s ease-out;
}

.auth-button--primary {
    background: transparent;
}

.auth-button:hover,
.auth-button:focus-visible {
    background-color: rgba(70, 195, 245, 0.12);
    box-shadow: 0 0 14px rgba(70, 195, 245, 0.4);
    transform: translateY(-1px);
}

/* Utility */

.hidden {
    display: none !important;
}

/* Animations */

@keyframes hero-fade-scale-in {
    from {
        opacity: 0;
        transform: translateY(-18px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes enter-pulse {
    0%,
    100% {
        opacity: 1;
        text-shadow:
            0 0 3px rgba(70, 195, 245, 0.9),
            0 0 7px rgba(70, 195, 245, 0.45);
    }
    50% {
        opacity: 0.94;
        text-shadow:
            0 0 4px rgba(70, 195, 245, 0.95),
            0 0 10px rgba(70, 195, 245, 0.65);
    }
}

/* Responsive */

@media (max-width: 768px) {
    .landing-root {
        padding: 0 12px;
    }

    .auth-panel {
        width: min(340px, 94vw);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 22px;
        letter-spacing: 0.26em;
        text-indent: 0.26em;
    }

    .auth-panel {
        padding: 20px 16px 18px;
    }
}
.auth-actions { display: flex; justify-content: flex-end; }
.auth-form { max-width: 180px; }
.auth-input, .auth-select { max-width: 160px; }

.auth-form { max-width: 360px; }
.auth-input, .auth-select { max-width: 160px; }

.auth-form { max-width: 420px; }
.auth-label { color: #ffffff; }
.auth-input, .auth-select { max-width: 220px; background: linear-gradient(135deg, rgba(70,195,245,0.35), #040a12); color: #ffffff; }

.auth-input::placeholder,
.auth-select::placeholder { color: #ffffff; opacity: 0.9; }
.auth-input::placeholder,
.auth-select::placeholder { color: #ffffff; opacity: 0.9; }
.auth-input, .auth-select { background: linear-gradient(90deg, rgba(70,195,245,0.85) 0%, #020812 75%); }

.auth-input, .auth-select { background: #ffffff; color: #000000; }

.auth-input, .auth-select { background-color: #ffffff !important; background-image: none !important; color: #000000 !important; }

.auth-input, .auth-select { background: #ffffff !important; color: #ffffff !important; }

.auth-input, .auth-select { color: #000000 !important; }

.auth-row--password { position: relative; }
.auth-row--password .auth-input { padding-right: 32px; }
.auth-password-toggle { position: absolute; right: 8px; top: 50%; }
.auth-row--password { position: relative; }
.auth-row--password .auth-input { padding-right: 32px; }
.auth-password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: #000000; cursor: pointer; }


/* Wider cyan-gray, thin dark edge */
.auth-panel { background: linear-gradient(90deg, #145b77 0%, #0b2735 88%, #050b12 100%); }

/* Password field + eye styles from old register */
.password-field{position:relative;display:inline-block;width:auto;align-self:flex-start;}
.password-field .auth-input{padding-right:44px;}
.toggle-eye{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:32px;height:32px;background:transparent;border:0;padding:0;color:var(--color-accent);cursor:pointer;display:grid;place-items:center;}
.toggle-eye .icon{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;}
.toggle-eye .eye-off{display:none;}
.toggle-eye[data-state="visible"] .eye{display:none;}
.toggle-eye[data-state="visible"] .eye-off{display:block;}
.toggle-eye:focus{outline:2px solid transparent;outline-offset:2px;}

/* Flip toggle + card flip */
@keyframes auth-panel-flip{0%{transform:translate(-50%,-50%) scale(1) rotateY(0deg);}49%{transform:translate(-50%,-50%) scale(1) rotateY(90deg);}51%{transform:translate(-50%,-50%) scale(1) rotateY(90deg);}100%{transform:translate(-50%,-50%) scale(1) rotateY(0deg);}}
.auth-panel--flipping{animation:auth-panel-flip 0.36s ease-in-out;}

/* Flip toggle icon styling */
/* Flip toggle icon styling */

/* Show auth flip chevron */

/* Flip chevron in auth panel */
.auth-flip-toggle{position:absolute;top:12px;right:12px;width:24px;height:24px;padding:0;border:0;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;}
.auth-flip-toggle svg{width:18px;height:18px;stroke:#e8edf7;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.auth-flip-toggle:hover svg{stroke:#ffffff;transform:translateY(-1px);}
#registerPasswordConfirm { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http://www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20height%3D%2224%22%20stroke%3D%22%2346c3f5%22%20fill%3D%22none%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M1%2012s4-7%2011-7%2011%207%2011%207-4%207-11%207-11-7-11-7z%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 22px 22px; }
#registerPassword, #registerPasswordConfirm { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http://www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20height%3D%2224%22%20stroke%3D%22%2346c3f5%22%20fill%3D%22none%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M1%2012s4-7%2011-7%2011%207%2011%207-4%207-11%207-11-7-11-7z%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 22px 22px; }
#registerForm input[type="password"] { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http://www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20height%3D%2224%22%20stroke%3D%22%2346c3f5%22%20fill%3D%22none%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M1%2012s4-7%2011-7%2011%207%2011%207-4%207-11%207-11-7-11-7z%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 22px 22px; }
.auth-legal{margin-top:6px;font-size:0.7rem;line-height:1.4;color:var(--color-gray);display:block;}
.auth-link{border:0;background:none;padding:0;color:var(--color-accent);font-size:inherit;text-decoration:underline;cursor:pointer;font-weight:400;}
.auth-link:hover,.auth-link:focus-visible{text-decoration:none;color:#ffffff;}
 .policy-panel{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:30;width:min(440px,90vw);max-height:60vh;border-radius:10px;border:1px solid var(--color-panel-border);background:#040a12;box-shadow:0 12px 32px rgba(0,0,0,0.9);}
.policy-panel-inner{padding:14px 18px;display:flex;flex-direction:column;gap:10px;}
.policy-panel-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #1b2732;padding-bottom:4px;font-size:0.78rem;color:var(--color-gray-light);}
.policy-panel-title{font-weight:500;}
.policy-panel-close{border:0;background:none;color:var(--color-gray-light);cursor:pointer;font-size:1rem;line-height:1;}
.policy-panel-close:hover,.policy-panel-close:focus-visible{color:#ffffff;}
.policy-panel-body{margin-top:4px;max-height:140px;overflow-y:auto;font-size:0.72rem;line-height:1.4;white-space:pre-wrap;}
#registerForm .auth-actions { display:flex; justify-content:space-between; align-items:center; }
#registerForm .auth-actions{margin-top:14px;gap:10px;}#registerForm .auth-legal{font-size:0.7rem;}#registerForm .auth-actions .auth-button{min-width:150px;flex-shrink:0;}
/* Small inline error under the Apply button */
.auth-error-inline {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;   /* smaller text */
    color: #ff4b4b;       /* red */
    text-align: right;    /* keeps it near the button */
}
