/* Signup page (auth) specific styles */
.auth-page {
    position: relative;
    min-height: calc(100vh - 76px);
    padding: 5rem 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

.auth-page::before,
.auth-page::after {
    content: '';
    position: absolute;
    width: 65vw;
    height: 65vw;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.55;
    animation: pulseGlow 18s ease-in-out infinite;
    pointer-events: none;
}

.auth-page::before {
    top: -35vw;
    left: -22vw;
    background: radial-gradient(circle, rgba(255, 119, 0, 0.55), transparent 65%);
}

.auth-page::after {
    bottom: -28vw;
    right: -18vw;
    background: radial-gradient(circle, rgba(255, 153, 0, 0.55), transparent 60%);
    animation-delay: 5s;
}

.auth-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.auth-container {
    position: relative;
    z-index: 1;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    align-items: center;
}

.auth-showcase {
    color: var(--text-white);
    transition: color 0.3s ease;
}

.badge-spark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--gradient-end);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.auth-showcase h1 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.15;
    color: var(--text-white);
    transition: color 0.3s ease;
}

.auth-showcase p {
    color: var(--text-muted-white);
    font-size: 1.05rem;
    max-width: 560px;
    margin-bottom: 2.5rem;
    transition: color 0.3s ease;
}

.milestone-list {
    display: grid;
    gap: 1.25rem;
    max-width: 540px;
}

.milestone-item {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: #ff9900;
    color: #000000;
    backdrop-filter: blur(18px);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.milestone-item i {
    font-size: 1.35rem;
    color: #ffffff !important;
    margin-top: 0.15rem;
    transition: color 0.3s ease;
}

.milestone-item span {
    color: #000000 !important;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.auth-card {
    position: relative;
    background: #ffffff !important;
    color: #000000;
    border: 1px solid rgba(255, 153, 0, 0.3);
    border-radius: 30px;
    padding: 3.25rem;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(26px);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 30px;
    padding: 1px;
    background: linear-gradient(135deg, #ff7700, #ff9900);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.3;
    pointer-events: none;
}

.auth-card header h2 {
    color: #000000 !important;
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-size: 2rem;
    transition: color 0.3s ease;
}

.auth-card header p {
    color: #000000 !important;
    margin-bottom: 2.75rem;
    transition: color 0.3s ease;
}

.input-field {
    margin-bottom: 1.6rem;
}

.input-label {
    color: #000000 !important;
    font-size: 0.95rem;
    margin-bottom: 0.55rem;
    transition: color 0.3s ease;
}

.input-shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 153, 0, 0.1);
    border: 1px solid rgba(255, 153, 0, 0.3);
    border-radius: 16px;
    padding: 0.9rem 1.05rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.toggle-visibility {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #000000 !important;
    font-size: 1.15rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.toggle-visibility:hover {
    color: rgba(0, 0, 0, 0.7) !important;
}

.input-shell i {
    color: #000000 !important;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.auth-control {
    background: transparent;
    border: none;
    color: #000000 !important;
    font-size: 1rem;
    width: 100%;
    padding: 0;
    outline: none;
    box-shadow: none;
    transition: color 0.3s ease;
}

.auth-control::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}

/* Override browser autofill styles - completely transparent, no marks */
.auth-control:-webkit-autofill,
.auth-control:-webkit-autofill:hover,
.auth-control:-webkit-autofill:focus,
.auth-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #000000 !important;
    background-color: transparent !important;
    background-clip: content-box !important;
    transition: background-color 5000s ease-in-out 0s, -webkit-box-shadow 5000s ease-in-out 0s;
    caret-color: #000000 !important;
    border: none !important;
    outline: none !important;
}

.input-shell:focus-within {
    background: rgba(255, 153, 0, 0.15);
    border-color: rgba(255, 153, 0, 0.65);
    box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.12);
}

.input-shell:focus-within .auth-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
}

.auth-button {
    background: #000000 !important;
    border: none;
    border-radius: 18px;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 1rem 1.5rem;
    width: 100%;
    margin-bottom: 1.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.auth-button:hover {
    transform: translateY(-3px);
    background: #1a1a1a !important;
    box-shadow: 0 28px 55px rgba(0, 0, 0, 0.5);
}

.form-footer {
    text-align: center;
    color: #000000 !important;
    transition: color 0.3s ease;
}

.form-footer a {
    color: #ff9900 !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.form-footer a:hover {
    color: #ff7700 !important;
}

/* Light theme - black background for auth card */
[data-theme="light"] .auth-card {
    background: #000000 !important;
    color: #ffffff;
    border-color: rgba(255, 153, 0, 0.3);
}

[data-theme="light"] .auth-card header h2,
[data-theme="light"] .auth-card header p,
[data-theme="light"] .input-label,
[data-theme="light"] .auth-control,
[data-theme="light"] .auth-control::placeholder,
[data-theme="light"] .toggle-visibility,
[data-theme="light"] .input-shell i,
[data-theme="light"] .form-footer {
    color: #ffffff !important;
}

[data-theme="light"] .auth-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Override browser autofill styles for light theme - completely transparent, no marks */
[data-theme="light"] .auth-control:-webkit-autofill,
[data-theme="light"] .auth-control:-webkit-autofill:hover,
[data-theme="light"] .auth-control:-webkit-autofill:focus,
[data-theme="light"] .auth-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: transparent !important;
    background-clip: content-box !important;
    transition: background-color 5000s ease-in-out 0s, -webkit-box-shadow 5000s ease-in-out 0s;
    caret-color: #ffffff !important;
    border: none !important;
    outline: none !important;
}

[data-theme="light"] .input-shell:focus-within .auth-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
}

[data-theme="light"] .toggle-visibility:hover {
    color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme="light"] .form-footer a {
    color: #ff9900 !important;
}

[data-theme="light"] .form-footer a:hover {
    color: #ffaa00 !important;
}

.input-shell.error-border {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.08) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12) !important;
}

.error-text {
    color: #fda4af;
    font-size: 0.85rem;
    margin-top: 0.45rem;
}

.help-text {
    color: rgba(0, 0, 0, 0.7) !important;
    font-size: 0.8rem;
    margin-top: 0.35rem;
    transition: color 0.3s ease;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.55; }
    50% { transform: scale(1.1); opacity: 0.75; }
}

@media (max-width: 768px) {
    .auth-page {
        padding: 4rem 0;
    }

    .auth-card {
        padding: 2.5rem 1.9rem;
    }

    .auth-wrapper {
        gap: 2.5rem;
    }

    .milestone-item {
        background: #ff9900;
        color: #000000;
    }
}



