@import url('https://fonts.googleapis.com/css2?family=Istok+Web:wght@400;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0f1115;
    font-family: 'Istok Web', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(10, 255, 133, 0.04) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Позиционируем лого и символы НАД формой, не смещая её */
.top-brand-area {
    position: absolute;
    bottom: calc(50vh + 225px + 20px); /* 50vh + половина высоты формы (225px) + отступ */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 600px;
    z-index: 3;
}

.top-logo {
    width: 280px;
    height: auto;
    display: block;
    margin-bottom: 25px; /* Равное удаление */
}

/* Контейнер для 5 символов Директа */
.direct-symbols {
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px; /* Равное удаление до формы */
}

.direct-symbols span {
    color: #0AFF85;
    font-size: 24px;
    font-weight: 700;
    font-family: monospace;
    opacity: 0;
    transform: translateY(10px) scale(0.5);
    transition: opacity 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Класс активации символа при заполнении */
.direct-symbols span.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    text-shadow: 0 0 10px rgba(10, 255, 133, 0.6);
}

/* Форма (Остается мёртво по центру экрана) */
.auth-card {
    position: relative;
    z-index: 2;
    width: 600px;
    height: 450px;
    background-color: #2a2a2a;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    width: 100%;
    height: 65px;
}

.tab-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.tab-btn.active {
    background-color: #2a2a2a;
    color: #0AFF85;
}

.tab-btn.inactive {
    background-color: #222222;
    color: rgba(10, 255, 133, 0.4);
}

.auth-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 35px;
}

.input-group {
    width: 400px;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #0AFF85;
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 400;
}

.input-group input {
    width: 100%;
    height: 45px;
    background-color: #9b9b9b;
    border: none;
    border-radius: 12px;
    padding: 0 15px;
    font-family: 'Istok Web', sans-serif;
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 700;
    outline: none;
    transition: box-shadow 0.2s;
}

.input-group input:focus {
    box-shadow: 0 0 0 2px #0AFF85;
}

.submit-btn {
    width: 250px;
    height: 50px;
    background-color: #0AFF85;
    border: none;
    border-radius: 14px;
    color: #000000;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(10, 255, 133, 0.2);
    transition: transform 0.1s, box-shadow 0.2s;
}

.submit-btn:hover {
    box-shadow: 0 6px 20px rgba(10, 255, 133, 0.4);
}