:root {
    --lime: #c1ff00;
    --purple: #8a2be2;
    --dark: #003153;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background: var(--dark); color: #fff; overflow: hidden; }

.scene {
    height: 100vh; width: 100%;
    display: flex; justify-content: center; align-items: center;
    position: relative;
}

/* ФОНОВЫЕ ЭЛЕМЕНТЫ */
.grid-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px; z-index: 1;
}

.shape {
    position: absolute; border: 1px solid rgba(193, 255, 0, 0.05);
    border-radius: 60px; z-index: 2;
}
.shape-1 { width: 500px; height: 500px; top: -150px; right: -100px; transform: rotate(15deg); }
.shape-2 { width: 350px; height: 350px; bottom: -80px; left: -80px; transform: rotate(-15deg); border-color: rgba(138, 43, 226, 0.05); }

/* КАРТОЧКА */
.auth-container { position: relative; z-index: 10; width: 100%; max-width: 520px; padding: 20px; }

.auth-card {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px;
    border-radius: 35px;
}

.back-link {
    color: #555; text-decoration: none; font-size: 0.75rem; 
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 35px; 
    display: flex; align-items: center; gap: 8px; transition: 0.3s;
}
.back-link:hover { color: var(--lime); }
.arrow { font-size: 1.1rem; }

.logo { font-size: 2.4rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 12px; }
.logo span { color: var(--lime); }
.desc { color: #666; font-size: 1rem; margin-bottom: 45px; line-height: 1.6; }

/* ПОЛЯ ВВОДА (ИСПРАВЛЕННАЯ ПОДСВЕТКА) */
.input-container {
    position: relative;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px; /* Скругление обертки */
    overflow: hidden; /* Линия не выйдет за рамки */
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.input-container input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 22px 25px;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--lime);
    transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--lime);
}

.input-container:focus-within {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(193, 255, 0, 0.2);
}

.input-container input:focus ~ .focus-border {
    width: 100%;
}

/* КНОПКА */
.btn-submit {
    width: 100%; padding: 22px; margin-top: 20px; border-radius: 18px;
    background: transparent; border: 1px solid var(--lime); color: var(--lime);
    font-size: 0.9rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
    cursor: pointer; transition: 0.4s;
}

.btn-submit:hover {
    color: #000;
    background: var(--lime);
    box-shadow: 0 10px 30px rgba(193, 255, 0, 0.25);
}

.btn-submit:active { transform: scale(0.98); }

.auth-footer { margin-top: 40px; text-align: center; color: #444; font-size: 0.9rem; }
.auth-footer a { color: #777; text-decoration: none; transition: 0.3s; }
.auth-footer a:hover { color: #fff; }
.sep { margin: 0 15px; color: #222; }