/* Cella.AI Auth - Premium Full Screen Experience */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Liquid Glass Cella.AI Brand Colors */
    --primary: #007bff;
    --primary-dark: #0056b3;
    --primary-light: #66b3ff;
    --primary-glow: rgba(0, 123, 255, 0.35);

    --secondary: #00d2ff;
    --secondary-glow: rgba(0, 210, 255, 0.25);

    --accent: #66b3ff;
    --accent-glow: rgba(102, 179, 255, 0.2);

    /* Dark Theme */
    --bg-primary: #030014;
    --bg-secondary: #010010;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-input: rgba(255, 255, 255, 0.03);

    /* Text */
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #007bff 0%, #66b3ff 50%, #00d2ff 100%);
    --gradient-secondary: linear-gradient(135deg, #00d2ff 0%, #3b82f6 50%, #007bff 100%);
    --gradient-mesh:
        radial-gradient(at 40% 20%, rgba(0, 123, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(102, 179, 255, 0.12) 0px, transparent 40%),
        radial-gradient(at 0% 50%, rgba(0, 210, 255, 0.1) 0px, transparent 50%),
        radial-gradient(at 60% 80%, rgba(0, 123, 255, 0.08) 0px, transparent 40%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--primary-glow);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(0, 123, 255, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 210, 255, 0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 123, 255, 0.08) 0%, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==================== ANIMATED BACKGROUND ==================== */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gradient-mesh {
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    animation: meshPulse 20s ease-in-out infinite;
}

@keyframes meshPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Animated Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 25s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #007bff, #66b3ff, #00d2ff);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #00d2ff, #66b3ff, #007bff);
    top: 50%;
    right: -5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #66b3ff, #007bff, #00d2ff);
    bottom: -10%;
    left: 30%;
    animation-delay: -10s;
}

.orb-4 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #007bff, #00d2ff);
    top: 30%;
    left: 50%;
    animation-delay: -15s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(-30px, -20px) scale(1.05);
    }
}

/* Particle Grid */
.particle-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(99, 102, 241, 0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    font-size: 1.5rem;
    color: var(--text-secondary);
    animation: floatShape 15s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.shape-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    top: 25%;
    right: 15%;
    animation-delay: -3s;
}

.shape-3 {
    bottom: 30%;
    left: 8%;
    animation-delay: -6s;
}

.shape-4 {
    top: 60%;
    right: 8%;
    animation-delay: -9s;
}

.shape-5 {
    bottom: 15%;
    left: 25%;
    animation-delay: -12s;
}

.shape-6 {
    top: 10%;
    left: 40%;
    animation-delay: -15s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
        opacity: 0.8;
    }
}

/* Neural Network Lines */
.neural-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

/* ==================== MAIN LAYOUT ==================== */
.auth-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ==================== HERO PANEL ==================== */
.hero-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    overflow: hidden;
}

.hero-content {
    max-width: 560px;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.3);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    }
}

.hero-badge i {
    color: var(--primary-light);
}

.hero-badge span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-logo {
    width: 100px;
    height: auto;
    margin-bottom: 32px;
    filter: drop-shadow(0 0 30px var(--primary-glow));
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-title {
    margin-bottom: 24px;
}

.title-line {
    display: block;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.title-gradient {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        filter: hue-rotate(0deg);
    }

    50% {
        filter: hue-rotate(30deg);
    }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Hero Features */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 48px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    animation: featureSlide 0.8s ease-out backwards;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.feature-item:nth-child(1) {
    animation-delay: 0.3s;
}

.feature-item:nth-child(2) {
    animation-delay: 0.5s;
}

.feature-item:nth-child(3) {
    animation-delay: 0.7s;
}

@keyframes featureSlide {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 123, 255, 0.3);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    color: white;
}

.feature-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Trusted Section */
.trusted-section {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    animation: fadeInUp 1s ease-out 0.9s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trusted-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.stats-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* ==================== AUTH PANEL ==================== */
.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 40px;
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    animation: slideInRight 1s ease-out;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary-glow), transparent 30%);
    animation: cardGlowRotate 8s linear infinite;
    opacity: 0.5;
    z-index: -1;
}

@keyframes cardGlowRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.auth-header-mobile {
    display: none;
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo-mobile {
    width: 60px;
    margin-bottom: 12px;
}

.auth-header-mobile h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== FORM STYLES ==================== */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: formFadeIn 0.5s ease-out;
}

@keyframes formFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.reset-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 20px;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 var(--primary-glow);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px var(--primary-glow);
    }
}

/* Input Groups */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 16px 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-group input:focus {
    outline: none;
    border-color: rgba(0, 123, 255, 0.5);
    background: rgba(0, 123, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.input-group input:focus+.input-focus-line,
.input-group input:focus~.input-focus-line {
    transform: scaleX(1);
}

.input-group:focus-within .input-icon {
    color: var(--primary-light);
}

.input-focus-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
    z-index: 2;
}

.toggle-password:hover {
    color: var(--text-primary);
}

/* Password Strength */
.password-strength {
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
}

.strength-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: var(--radius-full);
}

.strength-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.remember-me input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.remember-me input:checked+.checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.remember-me input:checked+.checkmark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-link {
    color: var(--primary-light);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--text-primary);
}

/* Terms Checkbox */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.terms-checkbox input {
    display: none;
}

/* reuse checkmark style defined earlier; add checked state for terms */
.terms-checkbox input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.terms-checkbox input:checked + .checkmark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.terms-checkbox a {
    color: var(--primary-light);
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.6), rgba(0, 210, 255, 0.5));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.8), rgba(0, 210, 255, 0.7));
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn.loading .btn-text,
.btn.loading .btn-arrow {
    display: none;
}

.btn.loading .btn-loader {
    display: block;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Social Buttons */
.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-social {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 14px 16px;
    font-size: 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-social svg,
.btn-social i {
    font-size: 1.25rem;
}

.btn-github i {
    color: var(--text-primary);
}

/* Switch Form */
.switch-form {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.switch-form a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.switch-form a:hover {
    color: var(--text-primary);
}

.switch-form a i {
    margin-right: 6px;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding: 16px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.toast.success .toast-icon::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.toast.error .toast-icon::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.toast.info .toast-icon {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
}

.toast.info .toast-icon::before {
    content: '\f129';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.toast-content {
    flex: 1;
}

.toast-title {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.toast-message {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.toast-close:hover {
    color: var(--text-primary);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
    .hero-panel {
        padding: 40px;
    }

    .title-line {
        font-size: 2rem;
    }

    .title-gradient {
        font-size: 2.8rem;
    }
}

@media (max-width: 1024px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        display: none;
    }

    .auth-panel {
        min-height: 100vh;
        padding: 24px;
    }

    .auth-header-mobile {
        display: block;
    }

    .floating-shapes {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .toast {
        left: 12px;
        right: 12px;
        max-width: none;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Hide scrollbar but allow scrolling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* ==================== LEGAL PAGES (Liquid Glass) ==================== */

/* -- Background blobs identical to the main site -- */
.legal-bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(100px);
    opacity: 0.5;
    pointer-events: none;
}

.legal-blob {
    position: absolute;
    border-radius: 50%;
}

.legal-blob-1 {
    width: 700px;
    height: 700px;
    top: -15%;
    right: -10%;
    background: linear-gradient(135deg, #007bff, #66b3ff, #00d2ff);
    animation: legalLiquidFloat 20s infinite alternate;
}

.legal-blob-2 {
    width: 500px;
    height: 500px;
    bottom: 5%;
    left: -8%;
    background: linear-gradient(135deg, #00d2ff, #66b3ff, #007bff);
    animation: legalLiquidFloat 28s infinite alternate;
    animation-delay: -7s;
}

@keyframes legalLiquidFloat {
    0%   { transform: translate(0,0) scale(1) rotate(0deg); border-radius:50%; }
    33%  { transform: translate(80px,-60px) scale(1.15) rotate(120deg); border-radius:40% 60% 55% 45%; }
    66%  { transform: translate(-40px,80px) scale(0.9) rotate(240deg); border-radius:55% 45% 40% 60%; }
    100% { transform: translate(60px,40px) scale(1.05) rotate(360deg); border-radius:50%; }
}

/* -- Body reset for legal pages -- */
.legal-page {
    background-color: #030014;
    background-image:
        radial-gradient(ellipse at 20% 0%,  rgba(0,123,255,0.2)  0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0,210,255,0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(0,123,255,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 100%, rgba(0,210,255,0.1)  0%, transparent 40%);
    min-height: 100vh;
    color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    padding: 0;
    display: block;
    margin: 0;
}

/* -- Glassmorphic navbar -- */
.legal-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
}

.legal-nav-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.legal-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.legal-nav-logo img {
    height: 36px;
}

.legal-nav-logo span {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.legal-nav-logo .accent {
    color: #66b3ff;
}

.legal-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 30px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.legal-nav-back:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.13);
    border-color: rgba(0,123,255,0.4);
    box-shadow: 0 6px 20px rgba(0,123,255,0.2), inset 0 1px 0 rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

/* -- Page layout -- */
.legal-main {
    padding: 120px 24px 80px;
    max-width: 900px;
    margin: 0 auto;
    animation: legalFadeSlide 0.7s ease-out both;
}

@keyframes legalFadeSlide {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* -- Page heading area -- */
.legal-hero {
    text-align: center;
    margin-bottom: 48px;
}

.legal-badge {
    display: inline-block;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #66b3ff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.legal-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #66b3ff 45%, #00d2ff 75%, #66b3ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(0,123,255,0.3));
    margin-bottom: 12px;
}

.legal-date {
    color: #64748b;
    font-size: 0.9rem;
}

/* -- Glass content card -- */
.legal-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 52px 48px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.07);
}

.legal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,123,255,0.06), rgba(0,210,255,0.04), transparent 60%);
    pointer-events: none;
}

/* intro paragraph */
.legal-intro {
    color: #94a3b8;
    font-size: 1.05rem;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    position: relative;
}

/* section blocks */
.legal-section {
    margin-bottom: 36px;
    position: relative;
}

.legal-section:last-of-type {
    margin-bottom: 0;
}

.legal-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.legal-section h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #007bff, #00d2ff);
    border-radius: 2px;
    flex-shrink: 0;
}

.legal-section p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.75;
    padding-left: 16px;
}

/* Contact link */
.legal-section a {
    color: #66b3ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(102,179,255,0.3);
    transition: all 0.3s ease;
}

.legal-section a:hover {
    color: #00d2ff;
    border-bottom-color: rgba(0,210,255,0.6);
}

/* -- Footer -- */
.legal-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.legal-footer-copy {
    color: #64748b;
    font-size: 0.85rem;
}

.legal-footer-links {
    display: flex;
    gap: 20px;
}

.legal-footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.legal-footer-links a:hover {
    color: #66b3ff;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-hero h1 { font-size: 2rem; }
    .legal-card { padding: 32px 24px; }
    .legal-main { padding: 100px 16px 60px; }
    .legal-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
    .legal-hero h1 { font-size: 1.7rem; }
    .legal-card { padding: 24px 16px; }
    .legal-nav-logo span { display: none; }
}
