/* ============================================
   PROJECT BOARD — LOGIN PAGE STYLES
   Color Palette: #000000, #FFFFFF, #A30B0B
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --black: #000000;
    --white: #FFFFFF;
    --red-primary: #A30B0B;
    --red-light: #D41414;
    --red-dark: #7A0808;
    --red-glow: rgba(163, 11, 11, 0.5);
    --red-subtle: rgba(163, 11, 11, 0.15);

    --glass-bg: rgba(0, 0, 0, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.05);

    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.4);

    --input-bg: rgba(255, 255, 255, 0.06);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-focus: rgba(163, 11, 11, 0.6);

    --font-primary: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', serif;

    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--black);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* ============================================
   3D ANIMATED BACKGROUND
   ============================================ */

.bg-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    inset: 0;
}

.bg-layer--deep {
    z-index: 1;
    transform-style: preserve-3d;
}

.bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.8) saturate(1.1);
    transition: opacity 1.2s ease-in-out;
}

@keyframes bgWavy {
    0% {
        transform: skewX(0deg) skewY(0deg);
    }

    25% {
        transform: skewX(0.3deg) skewY(-0.15deg);
    }

    50% {
        transform: skewX(-0.2deg) skewY(0.2deg);
    }

    75% {
        transform: skewX(0.15deg) skewY(-0.1deg);
    }

    100% {
        transform: skewX(0deg) skewY(0deg);
    }
}

/* Texture Overlay */
.bg-layer--mid {
    z-index: 2;
    pointer-events: none;
}

.texture-overlay {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px),
        repeating-linear-gradient(90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.02) 2px,
            rgba(0, 0, 0, 0.02) 4px);
    animation: textureShift 20s linear infinite;
    opacity: 0.7;
}

@keyframes textureShift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(4px, 4px);
    }
}

/* Particle field */
.bg-layer--front {
    z-index: 3;
    pointer-events: none;
}

.particle-field {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--white);
    opacity: 0;
    animation: particleFloat linear infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-20vh) scale(1);
        opacity: 0;
    }
}

/* Gradient overlay */
.bg-gradient-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    background:
        linear-gradient(135deg,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 0, 0, 0) 70%,
            rgba(0, 0, 0, 0.15) 100%);
    pointer-events: none;
}


/* ============================================
   MAIN CONTAINER LAYOUT
   ============================================ */

.login-container {
    position: relative;
    z-index: 10;
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* --- Left Side: Branding Spacer --- */
.branding-side {
    flex: 1;
    pointer-events: none;
}

.branding-content {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 32px;
    animation: brandFadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.3s;
}

@keyframes brandFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Logo */
.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 0;
    flex-shrink: 0;
}

.logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 15px rgba(163, 11, 11, 0.3));
    transition: transform var(--transition-spring);
}

.logo-wrapper:hover .logo-img {
    transform: scale(1.08);
}

.logo-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
    filter: blur(25px);
    opacity: 0.5;
    animation: glowPulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.15);
    }
}

/* Brand Title + Tagline container */
.brand-text-group {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 2px;
}

.brand-word {
    display: inline;
}

.brand-word--project {
    color: var(--white);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
    animation: wordSlideIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.6s;
}

.brand-word--board {
    color: var(--red-primary);
    text-shadow: 0 0 40px rgba(163, 11, 11, 0.4);
    animation: wordSlideIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.8s;
}

@keyframes wordSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.brand-tagline {
    font-family: var(--font-secondary);
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    animation: fadeIn 1s ease-out both;
    animation-delay: 1.1s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Decorative Elements — hidden in corner layout */
.brand-decorations {
    display: none;
}

.decoration-line {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
    animation: decorationExpand 1.5s ease-out both;
    animation-delay: 1.6s;
}

@keyframes decorationExpand {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 50px;
        opacity: 1;
    }
}

.decoration-dots {
    display: flex;
    gap: 6px;
}

.decoration-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red-primary);
    animation: dotPop 0.4s ease-out both;
}

.decoration-dots span:nth-child(1) {
    animation-delay: 1.7s;
}

.decoration-dots span:nth-child(2) {
    animation-delay: 1.85s;
}

.decoration-dots span:nth-child(3) {
    animation-delay: 2s;
}

@keyframes dotPop {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}


/* ============================================
   RIGHT SIDE: GLASSMORPHISM LOGIN FORM
   ============================================ */

.form-side {
    flex: 0 0 520px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    position: relative;
    background: rgba(15, 23, 42, 0.25);
    /* Lighter dark for better video visibility */
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.4);
    z-index: 10;
    overflow-y: auto;
}

/* Vertical glowing line on the left border of form-side */
.form-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent,
            rgba(163, 11, 11, 0.4),
            rgba(255, 255, 255, 0.15),
            rgba(163, 11, 11, 0.4),
            transparent);
    z-index: 2;
}

/* Inner content block for styling/layout constraints */
.form-side-content {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    animation: cardSlideIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.2s;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}


/* --- Form Header --- */
.form-header {
    text-align: center;
    margin-bottom: 36px;
}

.form-title {
    font-family: var(--font-primary);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.form-subtitle {
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
}


/* --- Input Groups --- */
.input-group {
    margin-bottom: 22px;
}

.input-label {
    display: block;
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.input-group:focus-within .input-label {
    color: var(--white);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: color var(--transition-smooth);
    pointer-events: none;
    z-index: 2;
}

.input-group:focus-within .input-icon {
    color: var(--white);
}

.input-wrapper input {
    width: 100%;
    padding: 14px 48px 14px 48px;
    font-family: var(--font-secondary);
    font-size: 0.925rem;
    font-weight: 400;
    color: var(--white);
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 14px;
    outline: none;
    transition: all var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

.input-wrapper input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1), 0 4px 16px rgba(0, 0, 0, 0.2);
}

.input-wrapper input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}




/* --- Password Toggle --- */
.password-toggle {
    position: absolute;
    right: 14px;
    z-index: 2;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.password-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.password-toggle:active {
    transform: scale(0.9);
}

.eye-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.password-toggle:hover .eye-icon {
    color: var(--text-secondary);
}


/* --- Form Options --- */
.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 28px;
}

.forgot-link {
    font-family: var(--font-secondary);
    font-size: 0.825rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color var(--transition-fast);
}

.forgot-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--red-primary);
    transition: width var(--transition-smooth);
}

.forgot-link:hover {
    color: var(--red-primary);
}

.forgot-link:hover::after {
    width: 100%;
}


/* --- Login Button --- */
.login-btn {
    width: 100%;
    padding: 16px 32px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(163, 11, 11, 0.35);
}

.login-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--red-light) 0%, var(--red-primary) 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(163, 11, 11, 0.5);
}

.login-btn:hover::before {
    opacity: 1;
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(163, 11, 11, 0.3);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-arrow {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 20px;
    height: 20px;
    transition: transform var(--transition-smooth);
}

.btn-arrow svg {
    width: 18px;
    height: 18px;
}

.login-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-loader {
    display: none;
    position: relative;
    z-index: 2;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}

.btn-loader svg {
    width: 20px;
    height: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Ripple */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0);
    pointer-events: none;
    z-index: 1;
}

.btn-ripple.active {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}


/* --- Divider --- */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.divider-text {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}


/* --- Form Footer --- */
.form-footer {
    text-align: center;
}

.footer-text {
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.register-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.register-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(163, 11, 11, 0.15), rgba(163, 11, 11, 0.05));
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.register-btn:hover {
    border-color: var(--red-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(163, 11, 11, 0.2);
}

.register-btn:hover::before {
    opacity: 1;
}

.register-btn:hover svg {
    transform: translateX(4px);
}

.register-btn svg {
    transition: transform var(--transition-smooth);
}

.register-btn:active {
    transform: translateY(0);
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .login-container {
        flex-direction: column;
    }

    .branding-side {
        display: none;
    }

    .form-side {
        flex: 1;
        width: 100%;
        padding: 40px 24px;
        border-left: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.55);
        /* slightly darker background on mobile for better legibility */
    }

    .form-side-content {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .form-side {
        padding: 32px 20px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .logo-img {
        width: 44px;
        height: 44px;
    }

    .brand-title {
        font-size: 1.4rem;
    }
}


/* ============================================
   MICRO-ANIMATIONS & TRANSITIONS
   ============================================ */

/* Input shake on validation error */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(2px);
    }
}

.input-group.error .input-wrapper {
    animation: shake 0.5s ease-out;
}

.input-group.error .input-wrapper input {
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px rgba(163, 11, 11, 0.2);
}

.input-group.error .input-label {
    color: var(--red-primary);
}

/* Success state */
.input-group.success .input-wrapper input {
    border-color: #2ecc71;
}

.input-group.success .input-icon {
    color: #2ecc71;
}

/* Button loading state */
.login-btn.loading .btn-text,
.login-btn.loading .btn-arrow {
    display: none;
}

.login-btn.loading .btn-loader {
    display: flex;
}

.login-btn.loading {
    pointer-events: none;
    opacity: 0.85;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Selection color */
::selection {
    background: rgba(163, 11, 11, 0.4);
    color: var(--white);
}

/* ============================================
   ONBOARDING LAYOUT
   ============================================ */

.onboarding-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.onboarding-header {
    text-align: center;
    margin-bottom: 60px;
}

.onboarding-title {
    font-size: 2.5rem;
    font-family: var(--font-primary);
    color: var(--white);
    margin-bottom: 12px;
}

.onboarding-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-family: var(--font-secondary);
}

.onboarding-cards {
    display: flex;
    gap: 32px;
    max-width: 900px;
    width: 100%;
}

.onboarding-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    text-decoration: none;
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.onboarding-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(163, 11, 11, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.onboarding-card:hover:not(.onboarding-card--disabled) {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.onboarding-card:hover:not(.onboarding-card--disabled)::before {
    opacity: 1;
}

.onboarding-card--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.card-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(163, 11, 11, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--red-light);
    position: relative;
    z-index: 2;
}

.card-icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.card-title {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 12px;
    font-family: var(--font-primary);
    position: relative;
    z-index: 2;
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.card-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-family: var(--font-secondary);
    transition: color var(--transition-fast);
    position: relative;
    z-index: 2;
}

.card-action svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-smooth);
}

.onboarding-card:hover:not(.onboarding-card--disabled) .card-action {
    color: var(--red-light);
}

.onboarding-card:hover:not(.onboarding-card--disabled) .card-action svg {
    transform: translateX(6px);
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */

.dashboard-layout {
    position: relative;
    z-index: 10;
    display: flex;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
}

/* Sidebar */
.dash-sidebar {
    width: 280px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 32px 24px;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-nav {
    padding: 24px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.nav-item:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.nav-item.active {
    background: rgba(163, 11, 11, 0.2);
    color: var(--red-light);
    border: 1px solid rgba(163, 11, 11, 0.3);
}

.nav-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sidebar-footer {
    padding: 24px 16px;
    border-top: 1px solid var(--glass-border);
}

/* Main Content */
.dash-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 40px;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.dash-title {
    font-size: 2rem;
    font-family: var(--font-primary);
    color: var(--white);
    margin-bottom: 8px;
}

.dash-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-family: var(--font-secondary);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-badge--forming {
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge--forming .status-dot {
    background: #60A5FA;
    box-shadow: 0 0 8px #60A5FA;
}

.status-badge--waiting {
    background: rgba(245, 158, 11, 0.15);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge--waiting .status-dot {
    background: #FBBF24;
    box-shadow: 0 0 8px #FBBF24;
}

.status-badge--active {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge--active .status-dot {
    background: #34D399;
    box-shadow: 0 0 8px #34D399;
}

/* Dashboard Cards */
.dash-content {
    max-width: 900px;
}

.glass-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* Roster List */
.roster-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.roster-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.empty-item {
    color: var(--text-muted);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    justify-content: center;
    border-style: dashed;
}

.roster-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(163, 11, 11, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-primary);
}

.bg-gray {
    background: rgba(255, 255, 255, 0.2);
}

.roster-info h4 {
    color: var(--white);
    font-family: var(--font-primary);
    margin-bottom: 4px;
}

.roster-info p {
    color: var(--text-secondary);
    font-family: var(--font-secondary);
    font-size: 0.85rem;
}

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-leader {
    background: rgba(245, 158, 11, 0.2);
    color: #FCD34D;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-member {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Utilities */
.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-70 {
    opacity: 0.7;
}

/* Buttons & Inputs */
.btn-primary-small {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
    color: var(--white);
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
}

.btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(163, 11, 11, 0.4);
}

.btn-secondary-small {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary-small:hover {
    background: rgba(255, 255, 255, 0.2);
}

.search-bar {
    position: relative;
    margin-bottom: 20px;
}

.search-bar svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.glass-input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--white);
    font-family: var(--font-secondary);
    outline: none;
    transition: all var(--transition-fast);
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-wrapper--select {
    position: relative;
}

.glass-select {
    width: 100%;
    padding: 14px 48px 14px 48px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--text-muted);
    font-family: var(--font-secondary);
    appearance: none;
    outline: none;
}

.glass-select:focus {
    color: var(--white);
}

.glass-select option {
    background: #0f172a;
    color: var(--white);
}

.select-chevron {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.glass-textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--white);
    font-family: var(--font-secondary);
    resize: vertical;
    outline: none;
}

.glass-textarea:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.status-banner {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.status-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.2);
    color: #FBBF24;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-icon svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   INDEX THEME BACKGROUND
   ============================================ */
.theme-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #050505;
}

.theme-bg__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('../image.png');
    background-size: cover;
    background-position: center bottom;
    z-index: 0;
}

.theme-bg__blur {
    position: absolute;
    inset: 0;
    z-index: 1;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.theme-bg__gradient {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.2) 0%, rgba(5, 5, 5, 0.6) 60%, rgba(5, 5, 5, 0.95) 100%);
}

/* ============================================
   LIGHT THEME OVERRIDES (DASHBOARD & ONBOARDING)
   ============================================ */
body.theme-light {
    --text-primary: #1a1a1a;
    --text-secondary: #5c5c5c;
    --text-muted: #999999;
    --white: #1a1a1a;
    background: #ffffff;
    color: var(--text-primary);
}

.theme-light .theme-bg {
    background-color: #faf9f7;
}

.theme-light .theme-bg__image,
.theme-light .theme-bg__blur,
.theme-light .theme-bg__gradient {
    display: none;
}

/* Dashboard specific overrides */
.theme-light .dashboard-layout {
    background: #faf9f7;
}

.theme-light .dash-sidebar {
    background: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.theme-light .nav-item {
    color: #5c5c5c;
}

.theme-light .nav-item:hover:not(.disabled) {
    background: rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
}

.theme-light .dash-title {
    color: #1a1a1a;
}

.theme-light .glass-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.theme-light .roster-item {
    background: #faf9f7;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.theme-light .roster-item:hover {
    background: #f0eeeb;
}

.theme-light .member-name {
    color: #1a1a1a;
}

.theme-light .glass-textarea,
.theme-light .glass-select,
.theme-light .input-wrapper input {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #1a1a1a;
}

.theme-light .glass-select option {
    background: #ffffff;
    color: #1a1a1a;
}

.theme-light .input-wrapper {
    background: transparent;
}

/* Onboarding specific overrides */
.theme-light .onboarding-container {
    background: #faf9f7;
}

.theme-light .onboarding-title {
    color: #1a1a1a;
}

.theme-light .onboarding-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.theme-light .onboarding-card:hover:not(.onboarding-card--disabled) {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.theme-light .onboarding-card::before {
    display: none;
}

.theme-light .card-title {
    color: #1a1a1a;
}

/* ============================================
   EMAIL VERIFICATION STEP — SIGNUP
   ============================================ */

.form-message--success {
    color: #22c55e !important;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1rem;
}

.form-message--error {
    color: var(--red-light, #D41414) !important;
    background: rgba(163, 11, 11, 0.1);
    border: 1px solid rgba(163, 11, 11, 0.2);
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1rem;
}

.verify-step-info {
    text-align: center;
    margin-bottom: 1.75rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.verify-icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-primary, #A30B0B), var(--red-light, #D41414));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 16px rgba(163, 11, 11, 0.35);
}

.verify-description {
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.verify-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.verify-code-input {
    letter-spacing: 0.35em !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    text-align: center !important;
}

.verify-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    text-align: center;
}

.verify-back-link {
    display: inline-block;
    color: var(--text-muted) !important;
    text-decoration: none !important;
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    background: none !important;
    border: none !important;
    cursor: pointer;
}

.verify-back-link:hover {
    color: var(--red-light, #D41414) !important;
}