/* Auth pages styles (login/register) */

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #151515 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-container {
    width: 100%;
    max-width: 340px;
    margin-top: 80px;
    padding: 0 20px;
    box-sizing: border-box;
}

.auth-box {
    box-sizing: border-box; /* ширина вместе с padding, иначе блок вылезает вправо на мобиле */
    background: rgba(15, 15, 15, 0.95);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    padding: 30px 25px;
    width: 100%;
    margin: 0 auto;
}

.logo-section {
    text-align: center;
    padding: 0 0 20px;
    width: 100%;
    margin: 0 auto;
}

.ft-text {
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 6px;
    display: inline-block;
    background: linear-gradient(45deg, #fff 0%, #ff4444 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 68, 68, 0.5);
    animation: shine 3s linear infinite;
    max-width: 100%;
    text-decoration: none;
    color: #fff;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #fff 0%, #ff4444 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-input {
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(30, 30, 30, 0.8);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none;
    width: 100%;
    max-width: 250px;
    display: block;
    margin: 0 auto;
}

.auth-input:focus {
    border-color: rgba(255, 68, 68, 0.5);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
}

.auth-input::placeholder {
    color: #666;
}

.submit-btn {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 10px auto 0;
    padding: 10px 0;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 50px;
    color: #ddd;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.08);
}

.submit-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 68, 68, 0.55);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.25);
    background: rgba(25, 25, 25, 0.98);
    color: #fff;
}

.errorlist {
    color: #ff5555;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    text-align: center;
}

/* Сообщения сайта (инвайт занят, имя недоступно…) — заметной плашкой над формой */
.auth-messages {
    padding: 10px 12px;
    border: 1px solid rgba(255, 68, 68, 0.35);
    border-radius: 10px;
    background: rgba(255, 68, 68, 0.08);
    line-height: 1.5;
}

.auth-messages .warning {
    color: #e08c00;
}

.auth-messages .success {
    color: #4ade80;
}

.password-hint {
    margin: -6px 0 0;
    font-size: 12px;
    text-align: center;
}

.password-hint.ok {
    color: #4ade80;
}

.password-hint.bad {
    color: #ff5555;
}


.lockout-msg {
    text-align: center;
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 25px;
}

.lockout-link {
    color: #ff4444;
    text-decoration: none;
}

.lockout-link:hover {
    color: #ff6666;
    text-decoration: underline;
}

.attempts-warning {
    text-align: center;
    color: #e08c00;
    font-size: 13px;
    margin: 0;
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: #888;
}

.auth-footer a {
    color: #ff4444;
    text-decoration: none;
    position: relative;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff0000, #ff4444);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.auth-footer a:hover {
    color: #ff6666;
}

.auth-footer a:hover::after {
    transform: scaleX(1);
}

@media (max-width: 480px) {
    .ft-text {
        font-size: 40px;
        letter-spacing: 4px;
    }

    .auth-box {
        padding: 30px 20px;
    }

    .auth-container {
        margin: 40px auto 0;
    }
}
