/* static/main/css/auth.css */
:root {
    --primary: #6A11CB;
    --secondary: #2575FC;
    --accent: #FF4E50;
    --dark: #0F0C29;
    --light: #f8f9fa;
}

body {
    background: linear-gradient(135deg, var(--dark), #24243e);
    color: white;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 0;
}

.auth-container {
    width: 90%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    margin: 0 auto 20px;
    display: block;
}

.auth-title {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
    color: white;
}

.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group {
    width: 100%;
    margin-bottom: 25px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(37, 117, 252, 0.3);
}

.auth-button {
    width: 100%;
    max-width: 300px;
    padding: 15px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.auth-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.error-message {
    color: var(--accent);
    text-align: center;
    margin-top: 20px;
    font-size: 15px;
    width: 100%;
}

@media (max-width: 480px) {
    .auth-container {
        padding: 30px 20px;
    }
    
    .auth-logo {
        width: 100px;
        height: 100px;
    }
    
    .auth-title {
        font-size: 22px;
    }
    
    .auth-button {
        padding: 14px;
        font-size: 16px;
    }
}

.form-group {
    position: relative; /* Для позиционирования кнопки сброса */
    margin-bottom: 25px;
}

.token-input-container {
    display: flex;
    gap: 10px;
}

.token-input {
    flex: 1;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.reset-button {
    width: 50px;
    padding: 0;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.reset-button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.reset-icon {
    font-size: 20px;
}

.button-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    align-items: center; /* Центрируем кнопки */
}

/* Гарантируем что кнопка продолжить всегда активна */
.auth-button {
    /* ... остальные стили ... */
    opacity: 1 !important;
    cursor: pointer !important;
}

/* Стили для состояния ошибки */
.error-state .token-input {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 78, 80, 0.2);
}

.error-state .reset-button {
    border-color: var(--accent);
}