/* ── LOGIN.CSS ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #06060f;
    --purple: #7c3aed;
    --purple2: #a78bfa;
    --cyan: #22d3ee;
    --border: rgba(124, 58, 237, 0.3);
    --surface: rgba(255, 255, 255, 0.04);
    --text: #f1f5f9;
    --muted: #94a3b8;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 5%;
    height: 64px;
    background: rgba(6, 6, 15, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
}

.nav-brand .ai {
    color: var(--purple2);
}

.auth-main {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    padding: 100px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.auth-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 36px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(124, 58, 237, 0.08);
    animation: fadeSlide 0.6s ease both;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tabs */
.tab-bar {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 28px;
}

.tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    color: var(--muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
}

.tab.active {
    background: var(--purple);
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

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

.auth-form.hidden {
    display: none;
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.form-header p {
    color: var(--muted);
    font-size: 0.9rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}

.field input {
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 12px;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 0.97rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
    border-color: var(--purple2);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.field input::placeholder {
    color: var(--muted);
    opacity: 0.6;
}

.opt {
    color: var(--muted);
    font-weight: 400;
}

.pw-wrap {
    position: relative;
}

.pw-wrap input {
    width: 100%;
    padding-right: 48px;
}

.eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.eye-btn:hover {
    opacity: 1;
}

.msg-box {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.87rem;
    font-weight: 500;
    display: none;
}

.msg-box.error {
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
    display: block;
}

.msg-box.success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    display: block;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: linear-gradient(135deg, var(--purple), #6366f1);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.5);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.switch-txt {
    text-align: center;
    font-size: 0.87rem;
    color: var(--muted);
}

.switch-txt a {
    color: var(--purple2);
    cursor: pointer;
    font-weight: 600;
}

.switch-txt a:hover {
    text-decoration: underline;
}

.college-badge {
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 40px;
}