/* --- AUTH PAGE --- */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-color);
}

.footer {
    margin-top: auto;
    width: 100%;
}

/* Fluid blobs in auth background */
.auth-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.auth-fluid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.ab1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
    animation: fluidMorph 25s ease-in-out infinite alternate;
}

.ab2 {
    bottom: -10%;
    right: -5%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, transparent 70%);
    animation: fluidFloat 30s ease-in-out infinite;
}

/* --- AUTH CARD --- */
.auth-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 460px;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.1);
    animation: fadeUp 0.6s ease-out forwards;
}

/* --- TABS --- */
.auth-tabs {
    display: flex;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1.8rem;
    position: relative;
}

.auth-tab {
    flex: 1;
    padding: 0.6rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 9px;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.auth-tab.active {
    color: var(--text-primary);
}

/* Sliding pill indicator */
.tab-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    background: var(--surface-hover);
    border-radius: 9px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* --- FORM PANELS --- */
.auth-form-panel {
    display: none;
    animation: fadeUp 0.4s ease-out;
}

.auth-form-panel.active {
    display: block;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: rgba(148, 163, 184, 0.4);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: rgba(15, 23, 42, 0.95);
}

.auth-submit {
    width: 100%;
    padding: 0.9rem;
    margin-top: 0.5rem;
    font-size: 1rem;
    border-radius: 12px;
    letter-spacing: 0.3px;
}

.auth-switch {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 1.2rem;
}

.auth-switch a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-switch a:hover {
    color: #818cf8;
}