/* ═══════════════════════════════════════════════════════════════════════════
   ROOT VARIABLES
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-input: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-glow: rgba(249, 115, 22, 0.3);
    --blue-500: #3b82f6;
    --amber-500: #f59e0b;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTAINER & BACKGROUND
   ═══════════════════════════════════════════════════════════════════════════ */
.auth-container {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a2e 50%, #0f0f1a 100%);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.bg-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.5) 0%, rgba(249, 115, 22, 0.2) 50%, transparent 100%);
    top: -20%;
    left: -15%;
    animation-delay: 0s;
}

.orb-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, rgba(234, 88, 12, 0.15) 50%, transparent 100%);
    bottom: -15%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.25) 0%, rgba(249, 115, 22, 0.1) 50%, transparent 100%);
    top: 35%;
    left: 25%;
    animation-delay: -10s;
}

@keyframes float {

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

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 30px) scale(1.02);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MARKETING PANEL (LEFT)
   ═══════════════════════════════════════════════════════════════════════════ */
.marketing-panel {
    display: none;
    width: 50%;
    padding: 3rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .marketing-panel {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.marketing-content {
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px var(--orange-glow);
}

.brand-icon i {
    color: white;
    font-size: 1.125rem;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Hero */
.hero-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--orange-500);
    width: fit-content;
    backdrop-filter: blur(8px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--orange-500);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

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

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin: 0;
}

.gradient-text {
    background: linear-gradient(135deg, var(--orange-500), #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Features */
.features-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    transform: translateX(8px);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.15);
}

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

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.feature-icon.orange {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.1));
    color: var(--orange-500);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.feature-card:hover .feature-icon.orange {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

.feature-icon.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    color: var(--blue-500);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.feature-card:hover .feature-icon.blue {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.feature-icon.amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    color: var(--amber-500);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.feature-card:hover .feature-icon.amber {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.feature-content h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.feature-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* Testimonial */
.testimonial-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(16px);
}

.stars {
    display: flex;
    gap: 0.25rem;
    color: var(--orange-500);
    margin-bottom: 1rem;
}

.testimonial-card blockquote {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4b5563, #6b7280);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.author-info strong {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-primary);
}

.author-info span {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

/* Mobile App CTA */
.mobile-app-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05));
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 20px rgba(249, 115, 22, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(249, 115, 22, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 30px rgba(249, 115, 22, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

.mobile-app-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(249, 115, 22, 0.1) 100%);
    pointer-events: none;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    position: relative;
    z-index: 1;
}

.cta-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: white;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.cta-text h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.cta-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

.cta-button:active {
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUTH PANEL (RIGHT)
   ═══════════════════════════════════════════════════════════════════════════ */
.auth-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    z-index: 10;
    min-height: 100vh;
}

@media (min-width: 1024px) {
    .auth-panel {
        width: 50%;
        padding: 2rem;
    }
}

/* Mobile Brand */
.mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .mobile-brand {
        display: none;
    }
}

/* Auth Card */
.auth-card {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Tab Switcher */
.tab-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.25rem;
    background: #f3f4f6;
    border-radius: 14px;
    margin-bottom: 1.5rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: #6b7280;
}

.tab-btn.active {
    background: white;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-btn.active i {
    color: var(--orange-500);
}

.tab-btn:not(.active) i {
    opacity: 0;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.auth-header p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Messages */
.message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    animation: shake 0.5s ease;
}

.message.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.message.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

@keyframes shake {

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

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

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

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .auth-card {
        padding: 1rem;
    }

    .auth-form {
        gap: 0.5rem;
    }

    .form-group {
        gap: 0.125rem;
    }

    .input-wrapper input {
        padding: 0.625rem 0.75rem 0.625rem 2.25rem;
        font-size: 0.875rem;
    }

    .form-group label {
        font-size: 0.5625rem;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-group label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    padding-left: 0.25rem;
}

.form-group label .optional {
    font-weight: 400;
    text-transform: none;
    color: #9ca3af;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: #9ca3af;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.input-wrapper input {
    width: 100%;
    padding: 0.75rem 0.875rem 0.75rem 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.9375rem;
    background: #ffffff;
    color: #111827;
    transition: all 0.2s ease;
    outline: none;
}

.input-wrapper input:focus {
    background: white;
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.input-wrapper input:focus+i,
.input-wrapper:focus-within i:first-child {
    color: var(--orange-500);
}

.input-wrapper input::placeholder {
    color: #9ca3af;
    font-weight: 400;
    opacity: 0.7;
}

.invitation-input {
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.toggle-password:hover {
    color: #6b7280;
}

.toggle-password:hover::after {
    content: '';
    position: absolute;
    right: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 6px;
    z-index: -1;
}

.toggle-password:active {
    transform: translateY(-50%) scale(0.95);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.remember-me input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #e5e7eb;
    border-radius: 24px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.remember-me input:checked+.toggle-slider {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    border-color: var(--orange-500);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.remember-me input:checked+.toggle-slider::before {
    transform: translateX(20px);
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3);
}

.remember-me:hover .toggle-slider {
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.1);
}

.remember-me input:focus+.toggle-slider {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.toggle-text {
    font-weight: 500;
    transition: color 0.2s ease;
}

.remember-me:hover .toggle-text {
    color: #374151;
}

.forgot-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--orange-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: var(--orange-600);
}

/* Submit Button */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 8px 20px var(--orange-glow);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px var(--orange-glow);
}

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

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Auth Footer */
.auth-footer {
    margin-top: 1.5rem;
}

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    font-size: 0.75rem;
    color: #9ca3af;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.social-btn img {
    width: 20px;
    height: 20px;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.security-badge i {
    color: var(--orange-500);
}

/* Footer Links */
.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-links a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--orange-500);
}

.footer-links .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}