/* =====================================================================
   TRILL OS — Design System (converted from Tailwind/React to plain CSS)
   Primary: deep teal · Accents: emerald, teal, cyan · Dark-first SaaS
===================================================================== */

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    background-color: #000;
}

@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
    --radius: 0.75rem;
    --radius-sm: 0.55rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-3xl: 1.75rem;

    --font-sans: "Cairo", "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;

    /* Dark-first premium palette */
    --background: oklch(0.16 0.02 190);
    --foreground: oklch(0.97 0.01 180);

    --brand: oklch(0.34 0.05 190);
    --brand-foreground: oklch(0.97 0.01 180);

    --surface: oklch(0.19 0.02 190);
    --surface-2: oklch(0.22 0.025 190);
    --glass: oklch(0.24 0.03 190 / 0.55);
    --hairline: oklch(1 0 0 / 0.08);

    --emerald: oklch(0.78 0.17 165);
    --teal: oklch(0.78 0.13 190);
    --cyan: oklch(0.82 0.13 210);

    --primary: oklch(0.78 0.13 190);
    --primary-foreground: oklch(0.16 0.03 190);

    --secondary: oklch(0.26 0.03 190);
    --secondary-foreground: oklch(0.97 0.01 180);

    --muted: oklch(0.24 0.02 190);
    --muted-foreground: oklch(0.72 0.02 190);

    --destructive: oklch(0.66 0.22 25);
    --destructive-foreground: oklch(0.98 0.01 180);

    --border: oklch(1 0 0 / 0.08);

    --shadow-glow: 0 0 40px -4px color-mix(in oklab, var(--teal) 45%, transparent);
    --shadow-elevated: 0 30px 80px -20px oklch(0 0 0 / 0.55), 0 2px 6px oklch(0 0 0 / 0.35);
}

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

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    color: inherit;
    background: none;
    border: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

::selection {
    background: color-mix(in oklab, var(--teal) 40%, transparent);
}

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

/* -------------------------------- UTILITIES -------------------------------- */
.wrap {
    max-width: 72rem;
    margin: 0 auto;
    padding-inline: 1rem;
}

.wrap-sm {
    max-width: 48rem;
    margin: 0 auto;
    padding-inline: 1rem;
}

.glass {
    background: color-mix(in oklab, var(--surface) 60%, transparent);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border: 1px solid var(--hairline);
}

.text-gradient {
    background: linear-gradient(120deg, oklch(0.97 0.01 180) 0%, var(--teal) 45%, var(--emerald) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bg-aurora {
    background:
        radial-gradient(60% 50% at 20% 10%, color-mix(in oklab, var(--teal) 28%, transparent), transparent 70%),
        radial-gradient(45% 40% at 85% 25%, color-mix(in oklab, var(--emerald) 22%, transparent), transparent 65%),
        radial-gradient(55% 45% at 60% 90%, color-mix(in oklab, var(--cyan) 20%, transparent), transparent 70%),
        var(--background);
}

.grid-lines {
    background-image:
        linear-gradient(to right, oklch(1 0 0 / 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, oklch(1 0 0 / 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
}

.icon {
    width: 1rem;
    height: 1rem;
    stroke-width: 2;
    flex-shrink: 0;
}

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border-radius: 999px;
    padding: .75rem 1.5rem;
    font-size: .875rem;
    font-weight: 500;
    transition: filter .2s, background .2s;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(to bottom, var(--teal), var(--emerald));
    color: var(--brand);
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, color-mix(in oklab, white 40%, transparent), transparent);
    transform: translateX(-100%);
    transition: transform 1s;
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.btn-outline {
    border: 1px solid var(--border);
    padding: .75rem 1.5rem;
}

.btn-outline:hover {
    background: color-mix(in oklab, var(--secondary) 60%, transparent);
}

/* -------------------------------- ANIMATIONS ------------------------------- */
@keyframes trill-float {

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

    50% {
        transform: translateY(-14px) rotate(0.3deg);
    }
}

@keyframes trill-glow {

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

    50% {
        opacity: 0.9;
        transform: scale(1.08);
    }
}

@keyframes trill-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

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

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

.animate-float {
    animation: trill-float 8s ease-in-out infinite;
}

.animate-glow-pulse {
    animation: trill-glow 6s ease-in-out infinite;
}

.animate-marquee {
    animation: trill-marquee 40s linear infinite;
}

.animate-fade-in {
    animation: fade-in .2s ease;
}

@media (prefers-reduced-motion: reduce) {

    .animate-float,
    .animate-glow-pulse,
    .animate-marquee {
        animation: none;
    }
}

/* ---------------------------------- NAV ------------------------------------ */
.site-nav {
    position: fixed;
    top: 1rem;
    inset-inline: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    padding-inline: 1rem;
}

.site-nav__inner {
    width: 50%;
    max-width: 72rem;
    border-radius: 999px;
    padding: .5rem .75rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    box-shadow: var(--shadow-elevated);
}

.site-nav__logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-inline: 1rem .25rem 1.25rem;
    padding: .5rem 1rem .5rem 1.25rem;
}

.site-nav__links {
    display: none;
    align-items: center;
    gap: .25rem;
    margin-inline: auto;
}

.site-nav__links a {
    padding: .375rem .75rem;
    font-size: .875rem;
    color: var(--muted-foreground);
    border-radius: 999px;
    transition: color .2s, background .2s;
}

.site-nav__links a:hover {
    color: var(--foreground);
    background: color-mix(in oklab, var(--secondary) 60%, transparent);
}

.site-nav__actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-inline-start: auto;
}

.site-nav__login {
    padding: .5rem 1rem;
    font-size: .875rem;
    color: color-mix(in oklab, var(--foreground) 80%, transparent);
    display: none;
}

.site-nav__login:hover {
    color: var(--foreground);
}

@media (min-width: 640px) {
    .site-nav__login {
        display: inline-flex;
    }
}

@media (min-width: 768px) {
    .site-nav__links {
        display: flex;
    }
}

/* ---------------------------------- LOGO ----------------------------------- */
.logo {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    height: 1.5rem;
}

.logo svg {
    height: 100%;
    width: auto;
}

.logo span {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

/* ---------------------------------- HERO ------------------------------------ */
.hero {
    position: relative;
    /* padding: 10rem 1rem 6rem; */
    height: 100vh;
    overflow: hidden;
}

.hero__bg-img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: .4;
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero__glow-wrap {
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 600px;
    overflow: hidden;
    pointer-events: none;
}

.hero__glow-1 {
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    height: 700px;
    width: 900px;
    border-radius: 999px;
    background: color-mix(in oklab, var(--teal) 20%, transparent);
    filter: blur(64px);
}

.hero__glow-2 {
    position: absolute;
    top: 80px;
    right: 40px;
    height: 400px;
    width: 400px;
    border-radius: 999px;
    background: color-mix(in oklab, var(--emerald) 15%, transparent);
    filter: blur(64px);
}

.hero__content {
    position: relative;
    max-width: 72rem;
    margin: 0 auto;
    margin-top: 10%;
    text-align: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border-radius: 999px;
    padding: .375rem 1rem;
    font-size: .75rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    transition: color .2s;
}

.hero__badge:hover {
    color: var(--foreground);
}

.dot {
    height: .375rem;
    width: .375rem;
    border-radius: 999px;
    background: var(--emerald);
}

.hero h1 {
    font-size: clamp(2.75rem, 6vw, 6rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: .95;
}

.hero h1 .dim {
    color: color-mix(in oklab, var(--foreground) 70%, transparent);
}

.hero__lead {
    margin: 2rem auto 0;
    max-width: 42rem;
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

.hero__ctas {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .75rem;
}

.hero__badges {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: .75rem;
    color: var(--muted-foreground);
    flex-wrap: wrap;
}

.hero__badges span {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
}

.hero__badges .icon {
    color: var(--emerald);
}

.hero__preview {
    margin-top: 5rem;
}

/* ////////////message1//////////// */
#messagebox {
    position: fixed;
    bottom: 30px;
    right: 30px;

    width: 320px;
    min-height: 75px;
    padding: 18px 22px;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(7, 22, 25, 0.92);
    backdrop-filter: blur(18px);

    border-radius: 18px;

    overflow: hidden;
    z-index: 9999;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, .45),
        0 0 25px rgba(0, 230, 184, .15);

    animation: messageIn .55s cubic-bezier(.18, .89, .32, 1.28);
}

/* الخط المتحرك */
#messagebox::before {
    content: "";
    position: absolute;
    inset: -120%;

    background: conic-gradient(transparent,
            #00e6b8,
            #4af5d2,
            transparent 40%);

    animation: borderRotate 3s linear infinite;
}

/* الخلفية */
#messagebox::after {
    content: "";
    position: absolute;
    inset: 2px;

    border-radius: 16px;

    background: linear-gradient(135deg,
            rgba(4, 63, 59, .95),
            rgba(10, 24, 28, .96));
}

#message {
    position: relative;
    z-index: 2;

    margin: 0;

    font-size: 14px;
    font-weight: 500;

    color: #ffffff;

    line-height: 1.6;
    text-align: center;
}

/* شريط جانبي */
#messagebox .accent {
    position: absolute;
    left: 0;
    top: 0;

    width: 5px;
    height: 100%;

    background: linear-gradient(#00e6b8,
            #43ffd9);

    z-index: 3;

    box-shadow: 0 0 20px #00e6b8;
}

/* دخول */
@keyframes messageIn {

    0% {
        opacity: 0;
        transform: translateX(120px) scale(.9);
        filter: blur(10px);
    }

    60% {
        opacity: 1;
        transform: translateX(-8px) scale(1.02);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

}

/* خروج */
.message-hide {
    animation: messageOut .45s ease forwards;
}

@keyframes messageOut {

    to {
        opacity: 0;
        transform: translateX(120px) scale(.9);
        filter: blur(8px);
    }

}

/* دوران الحدود */
@keyframes borderRotate {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* ////////////message2//////////// */
#messagebox2 {
    width: 300px;
    min-height: 70px;
    padding: 15px 20px;

    background: rgba(4, 63, 59, 0.9);
    color: white;

    position: fixed;
    bottom: 40px;
    right: 30px;

    border-radius: 14px;

    display: none;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    z-index: 9999;
}

/* الخط الدوار حول البوكس */
#messagebox2::before {
    content: "";
    position: absolute;
    top: -25%;
    left: -25%;

    width: 150%;
    height: 150%;

    background: conic-gradient(transparent,
            #00e6b8,
            transparent 30%);

    animation: rotateMessageBorder 2s linear infinite;
}

/* يخلي الخلفية فوق الخط */
#messagebox2::after {
    content: "";
    position: absolute;

    inset: 3px;

    background: rgba(4, 63, 59, 0.95);
    border-radius: 12px;
}


#message2 {
    position: relative;
    z-index: 2;

    margin: 0;

    font-size: 12px;
    line-height: 1.5;

    color: #00e6b8;

    text-align: center;

    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* دوران الخط */
@keyframes rotateMessageBorder {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

/* ////////////////////////login/////////////////////////////////////// */
:root {
    --primary: #00d4aa;
    --primary-dark: #00b894;
    --primary-light: #00e6b8;
    --bg-dark: #0a1f1c;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border: rgba(0, 212, 170, 0.2);
    --text: #e0f2ed;
    --text-dim: #8bb8ad;
    --error: #ff6b6b;
    --success: #00d4aa;
}

.signin {
    position: absolute;
    display: flex;
    justify-content: center;
    width: 100%;
    top: 0%;
    height: 100vh;
    z-index: 500000000000;
    background-color: #052c2e;
    display: flex;
    justify-content: space-around;
    padding: 30px;
    display: none;
    opacity: 0;
    animation: signinPageIn 0.8s ease forwards;

}

/* =========================

   SIGN IN PAGE ANIMATION

========================= */

/* =========================

   LOGIN CARD

========================= */

.signin .login-card {

    opacity: 0;

    transform: translateY(50px) scale(0.94);

    filter: blur(8px);



    animation:

        loginCardIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;

}

.signup .login-card {

    opacity: 0;

    transform: translateY(50px) scale(0.94);

    filter: blur(8px);



    animation:

        loginCardIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;

}

/* =========================

   PAGE FADE

========================= */



@keyframes signinPageIn {



    from {

        opacity: 0;

    }



    to {

        opacity: 1;

    }



}





/* =========================

   CARD ANIMATION

========================= */



@keyframes loginCardIn {



    0% {

        opacity: 0;

        transform: translateY(50px) scale(0.94);

        filter: blur(8px);

    }



    60% {

        opacity: 1;

        transform: translateY(-5px) scale(1.01);

        filter: blur(0);

    }



    100% {

        opacity: 1;

        transform: translateY(0) scale(1);

        filter: blur(0);

    }



}

/* =========================

   SIGN IN PAGE ANIMATION

========================= */



.signin {

    opacity: 0;

    animation: signinPageIn 0.8s ease forwards;

}





/* =========================

   LOGIN CARD

========================= */



.signin .login-card {

    opacity: 0;

    transform: translateY(50px) scale(0.94);

    filter: blur(8px);



    animation:

        loginCardIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;

}





/* =========================

   PAGE FADE

========================= */



@keyframes signinPageIn {



    from {

        opacity: 0;

    }



    to {

        opacity: 1;

    }



}





/* =========================

   CARD ANIMATION

========================= */



@keyframes loginCardIn {



    0% {

        opacity: 0;

        transform: translateY(50px) scale(0.94);

        filter: blur(8px);

    }



    60% {

        opacity: 1;

        transform: translateY(-5px) scale(1.01);

        filter: blur(0);

    }



    100% {

        opacity: 1;

        transform: translateY(0) scale(1);

        filter: blur(0);

    }



}

.signup {
    position: absolute;
    display: flex;
    justify-content: center;
    width: 100%;
    top: 0%;
    height: 100vh;
    z-index: 500000000000;
    background-color: #052c2e;
    display: flex;
    justify-content: space-around;
    padding: 30px;
    display: none;
}

/* Login Card */
.login-card {
    width: 400px;
    padding: 10px;
    z-index: 10;
    margin: auto;
}


/* Logo area */
.logo-area {
    text-align: center;
    margin-bottom: 5px;
}

.logo-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 8px 32px rgba(0, 212, 170, 0.3);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

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

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

.logo-area h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.logo-area p {
    font-size: 13px;
    color: var(--text-dim);
}

/* SVG Hand-drawn border animation */
/* ////////////////////////////////// */
/* وقت التحميل فقط */

.login-card.loading .hand-drawn-path {

    animation: rotateBorder 2s linear infinite;

}



@keyframes rotateBorder {

    from {
        stroke-dashoffset: 1600;
    }

    to {
        stroke-dashoffset: 0;
    }

}

.signimg {
    width: 45%;
    height: 650px;
    border-radius: 20px;
}

/* //////////////////////////////// */
.svg-border-wrapper {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 26px;
    pointer-events: none;
    z-index: 5;
}

.svg-border-wrapper svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hand-drawn-path {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1600;
    stroke-dashoffset: 1600;
    filter: drop-shadow(0 0 8px rgba(0, 212, 170, 0.5));
    animation: drawBorder 2.5s ease-out forwards, pulseGlow 3s ease-in-out 2.5s infinite;
}

@keyframes drawBorder {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.6;
        filter: drop-shadow(0 0 4px rgba(0, 212, 170, 0.3));
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 12px rgba(0, 212, 170, 0.7));
    }
}

/* Form */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 8px;
    padding-right: 4px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 44px 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1.5px solid rgba(0, 212, 170, 0.15);
    border-radius: 14px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    background: rgba(0, 212, 170, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.1);
}

.input-wrapper input::placeholder {
    color: rgba(139, 184, 173, 0.4);
}

.input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-dim);
    transition: color 0.3s;
}

.input-wrapper input:focus+.input-icon,
.input-wrapper input:not(:placeholder-shown)+.input-icon {
    color: var(--primary);
}

.toggle-password {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--primary);
}

/* Remember & Forgot */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 12px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    cursor: pointer;
    user-select: none;
}

.remember input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(0, 212, 170, 0.3);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.remember input:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.remember input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0a1f1c;
    font-size: 11px;
    font-weight: 700;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.forgot-link:hover {
    opacity: 0.8;
}

/* Submit Button */
#btn-close {
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 35px;
    transition: color 0.3s;

}

#btn-close2 {
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 35px;
    transition: color 0.3s;

}

#btn-close:hover {
    color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 14px;
    color: #0a1f1c;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 212, 170, 0.25);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 212, 170, 0.35);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn .btn-text {
    display: inline-block;
    transition: transform 0.3s;
}

.submit-btn.loading .btn-text {
    transform: translateX(-10px);
    opacity: 0.7;
}

.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(10, 31, 28, 0.3);
    border-top-color: #0a1f1c;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.submit-btn.loading .btn-spinner {
    display: block;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--text-dim);
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 212, 170, 0.15);
}

/* Social Login */
.social-login {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1.5px solid rgba(0, 212, 170, 0.1);
    border-radius: 12px;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.social-btn:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 170, 0.05);
    transform: translateY(-2px);
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid white;
    border-top: 3px solid transparent;
    border-radius: 50%;
    display: none;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
.footer-text {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-dim);
}

.footer-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-right: 4px;
    transition: opacity 0.3s;
}

.footer-text a:hover {
    opacity: 0.8;
}

/* Error shake */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

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

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

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

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

/* Success overlay */
.success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
    z-index: 20;
}

.success-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.success-check {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 32px rgba(0, 212, 170, 0.3);
    animation: successPop 0.5s ease-out;
}

.success-check svg {
    width: 32px;
    height: 32px;
    stroke: #0a1f1c;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck 0.4s ease-out 0.3s forwards;
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.success-overlay h3 {
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
}

.success-overlay p {
    color: var(--text-dim);
    font-size: 13px;
    margin-top: 4px;
}

/* Floating particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatParticle {

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

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    50% {
        transform: translateY(-100px) translateX(30px);
    }
}

/* ============================================================
   TRILL Preloader — cinematic fullscreen loading experience
   ============================================================ */
/* =========================================================
   TRILLFLOW — PREMIUM PRELOADER
   ========================================================= */

.trill-preloader {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        radial-gradient(circle at 50% 50%,
            rgba(88, 242, 168, 0.08),
            transparent 25%),
        radial-gradient(circle at 50% 50%,
            rgba(0, 100, 90, 0.18),
            transparent 60%),
        #01191b;

    z-index: 999999;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.8s cubic-bezier(.22, 1, .36, 1),
        visibility 0.8s ease;
}


/* =========================================================
   BACKGROUND FIELD
   ========================================================= */

.tp-field {
    position: absolute;
    inset: -100px;

    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px);

    background-size: 55px 55px;

    opacity: 0.5;

    mask-image:
        radial-gradient(circle at center,
            black 0%,
            transparent 70%);

    -webkit-mask-image:
        radial-gradient(circle at center,
            black 0%,
            transparent 70%);

    animation:
        fieldMove 18s linear infinite;

    pointer-events: none;
}


@keyframes fieldMove {

    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(55px, 55px);
    }

}


/* =========================================================
   VIGNETTE
   ========================================================= */

.tp-vignette {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(ellipse at center,
            transparent 20%,
            rgba(0, 0, 0, 0.25) 70%,
            rgba(0, 0, 0, 0.7) 100%);
}


/* =========================================================
   STAGE
   ========================================================= */

.tp-stage {
    position: relative;

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* =========================================================
   MAIN UNIT
   ========================================================= */

.tp-unit {
    position: relative;

    width: 300px;
    height: 300px;

    display: flex;

    align-items: center;
    justify-content: center;

    animation:
        unitEnter 1s cubic-bezier(.22, 1, .36, 1) both;
}


@keyframes unitEnter {

    0% {
        opacity: 0;

        transform:
            scale(0.85) translateY(15px);

        filter: blur(8px);
    }

    60% {
        opacity: 1;

        transform:
            scale(1.02) translateY(-2px);

        filter: blur(0);
    }

    100% {
        opacity: 1;

        transform:
            scale(1) translateY(0);

        filter: blur(0);
    }

}


/* =========================================================
   CENTER GLOW
   ========================================================= */

.tp-glow {
    position: absolute;

    width: 150px;
    height: 150px;

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(88, 242, 168, 0.25),
            rgba(88, 242, 168, 0.08) 35%,
            transparent 70%);

    filter: blur(15px);

    animation:
        glowPulse 3s ease-in-out infinite;

    pointer-events: none;
}


@keyframes glowPulse {

    0%,
    100% {
        transform: scale(0.82);
        opacity: 0.45;
    }

    50% {
        transform: scale(1.18);
        opacity: 1;
    }

}


/* =========================================================
   OUTER ORBIT
   ========================================================= */

.tp-unit::before {
    content: "";

    position: absolute;

    width: 225px;
    height: 225px;

    border-radius: 50%;

    border:
        1px solid rgba(88, 242, 168, 0.035);

    border-top-color:
        rgba(88, 242, 168, 0.22);

    border-right-color:
        rgba(88, 242, 168, 0.08);

    animation:
        outerOrbit 8s linear infinite;
}


@keyframes outerOrbit {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   RING
   ========================================================= */

.tp-ring {
    position: absolute;

    width: 190px;
    height: 190px;

    transform: rotate(-90deg);

    overflow: visible;

    z-index: 3;
}


/* =========================================================
   RING TRACK
   ========================================================= */

.tp-ring-track {
    fill: none;

    stroke:
        rgba(255, 255, 255, 0.055);

    stroke-width: 1.5;
}


/* =========================================================
   RING ARC
   ========================================================= */

.tp-ring-arc {
    fill: none;

    stroke:
        #58f2a8;

    stroke-width: 2.5;

    stroke-linecap: round;

    stroke-dasharray: 471;

    stroke-dashoffset: 471;

    filter:
        drop-shadow(0 0 7px rgba(88, 242, 168, 0.8));

    animation:
        ringLoading 2.2s cubic-bezier(.65, 0, .35, 1) infinite;
}


@keyframes ringLoading {

    0% {
        stroke-dashoffset: 471;
        opacity: 0.25;
    }

    15% {
        opacity: 1;
    }

    70% {
        stroke-dashoffset: 100;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0.25;
    }

}


/* =========================================================
   TRILLFLOW WORD
   ========================================================= */

.tp-word {
    position: absolute;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    display: flex;

    align-items: center;
    justify-content: center;

    font-family:
        Inter,
        Arial,
        sans-serif;

    font-size: 25px;

    font-weight: 700;

    letter-spacing: -0.045em;

    color:
        #eefdfa;

    white-space: nowrap;

    z-index: 10;

    text-shadow:
        0 0 20px rgba(88, 242, 168, 0.12);
}


/* =========================================================
   LETTER ANIMATION
   ========================================================= */

.tp-word span {
    display: inline-block;

    opacity: 0;

    transform:
        translateY(10px) scale(0.9);

    filter: blur(4px);

    animation:
        letterAppear 0.65s cubic-bezier(.22, 1, .36, 1) forwards;
}


.tp-word span:nth-child(1) {
    animation-delay: 0.25s;
}

.tp-word span:nth-child(2) {
    animation-delay: 0.30s;
}

.tp-word span:nth-child(3) {
    animation-delay: 0.35s;
}

.tp-word span:nth-child(4) {
    animation-delay: 0.40s;
}

.tp-word span:nth-child(5) {
    animation-delay: 0.45s;
}

.tp-word span:nth-child(6) {
    animation-delay: 0.50s;
}

.tp-word span:nth-child(7) {
    animation-delay: 0.55s;
}

.tp-word span:nth-child(8) {
    animation-delay: 0.60s;
}

.tp-word span:nth-child(9) {
    animation-delay: 0.65s;
}


@keyframes letterAppear {

    0% {
        opacity: 0;

        transform:
            translateY(10px) scale(0.9);

        filter: blur(4px);
    }

    60% {
        opacity: 1;

        transform:
            translateY(-2px) scale(1.04);

        filter: blur(0);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0) scale(1);

        filter: blur(0);
    }

}


/* =========================================================
   LIGHT SWEEP
   ========================================================= */

.tp-word::after {
    content: "";

    position: absolute;

    top: -12px;
    bottom: -12px;

    left: -40px;

    width: 25px;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(88, 242, 168, 0.9),
            transparent);

    filter: blur(5px);

    transform: skewX(-18deg);

    opacity: 0;

    pointer-events: none;

    animation:
        wordSweep 1.5s ease 1.2s forwards;
}


@keyframes wordSweep {

    0% {
        left: -40px;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    70% {
        opacity: 0.8;
    }

    100% {
        left: calc(100% + 40px);
        opacity: 0;
    }

}


/* =========================================================
   STATUS
   ========================================================= */

.tp-status {
    position: absolute;

    top: calc(50% + 65px);
    left: 50%;

    transform:
        translateX(-50%);

    width: 190px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    font-family:
        Inter,
        Arial,
        sans-serif;

    font-size: 8px;

    font-weight: 600;

    letter-spacing: 0.18em;

    color:
        rgba(220, 240, 237, 0.32);

    opacity: 0;

    animation:
        statusIn 0.6s ease 1.1s forwards;
}


.tp-status b {
    color:
        rgba(88, 242, 168, 0.75);

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.05em;
}


@keyframes statusIn {

    to {
        opacity: 1;
    }

}


/* =========================================================
   SMALL LIGHT DOTS
   ========================================================= */

.tp-unit::after {
    content: "";

    position: absolute;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background:
        #58f2a8;

    box-shadow:
        0 0 12px rgba(88, 242, 168, 0.9);

    top: 38px;
    right: 55px;

    opacity: 0.7;

    animation:
        dotPulse 2s ease-in-out infinite;
}


@keyframes dotPulse {

    0%,
    100% {
        opacity: 0.25;
        transform: scale(.7);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

}


/* =========================================================
   EXIT
   ========================================================= */

.trill-preloader.hide {
    opacity: 0;

    visibility: hidden;

    pointer-events: none;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .tp-unit {
        transform: scale(0.82);
    }

    .tp-word {
        font-size: 22px;
    }

}

/* =========================================================
   MESSAGE BOX
   ========================================================= */

.message-box {
    position: fixed;
    bottom: 24px;
    right: 24px;

    width: min(360px, calc(100vw - 32px));

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 13px 14px;

    border: 1px solid rgba(255, 255, 255, 0.09);

    border-radius: 14px;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    color: #fff;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.97);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index: 99999;
}

.message-box.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}


/* Icon */

.message-box-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(45, 212, 191, 0.10);
    border: 1px solid rgba(45, 212, 191, 0.16);

    color: #2dd4bf;

    font-size: 15px;
    font-weight: 700;
}


/* Content */

.message-box-content {
    min-width: 0;
    flex: 1;
}

.message-box-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;

    margin-bottom: 2px;
}

.message-box-text {
    color: rgba(255, 255, 255, 0.58);

    font-size: 12px;
    line-height: 1.5;

    word-break: break-word;
}


/* Close */

.message-box-close {
    width: 26px;
    height: 26px;

    flex: 0 0 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: rgba(255, 255, 255, 0.4);

    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.message-box-close:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}


/* =========================================================
   TYPES
   ========================================================= */

.message-box.success .message-box-icon {
    color: #2dd4bf;
    background: rgba(45, 212, 191, 0.10);
    border-color: rgba(45, 212, 191, 0.16);
}

.message-box.error .message-box-icon {
    color: #fb7185;
    background: rgba(251, 113, 133, 0.10);
    border-color: rgba(251, 113, 133, 0.16);
}

.message-box.warning .message-box-icon {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.10);
    border-color: rgba(251, 191, 36, 0.16);
}

.message-box.info .message-box-icon {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.10);
    border-color: rgba(96, 165, 250, 0.16);
}


/* Mobile */

@media (max-width: 600px) {

    .message-box {
        top: 14px;
        right: 14px;
        width: calc(100vw - 28px);
    }

}