/* Стили для страниц аутентификации */

.auth-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: #1a1a1a;
    padding: 3rem;
    border-radius: 5px;
    border: 1px solid #2a2a2a;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.auth-content {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    min-height: 300px;
}

.auth-card h1 {
    font-family: 'EB Garamond', serif;
    font-size: 32px;
    color: #fff;
    margin: 0 0 2rem;
    text-align: center;
    letter-spacing: 1px;
}

.success-message {
    background: rgba(51, 255, 51, 0.1);
    border: 1px solid #33ff33;
    border-radius: 3px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.success-message p {
    color: #33ff33;
    margin: 0;
    font-size: 14px;
}

.auth-form-section {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.auth-form {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #a0a0a0;
    font-size: 14px;
    font-family: 'Roboto Mono', monospace;
}

.auth-form label .required {
    color: #ff3333;
    margin-left: 3px;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    background: #222;
    border: 1px solid #333;
    border-radius: 3px;
    color: #d4d4d4;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: #ff3333;
}

.auth-form input.error {
    border-color: #ff3333;
}

.auth-form input[type="date"] {
    color-scheme: dark;
}

.auth-form input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 0.5rem;
}

.captcha-question {
    background: #222;
    border: 1px solid #333;
    border-radius: 3px;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: 700;
    color: #ff3333;
    font-family: 'Roboto Mono', monospace;
    min-width: 120px;
    text-align: center;
    flex-shrink: 0;
}

.captcha-container input {
    flex: 1;
    max-width: 150px;
}

.captcha-refresh {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #222;
    border: 1px solid #333;
    border-radius: 3px;
    color: #a0a0a0;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.captcha-refresh:hover {
    background: #2a2a2a;
    border-color: #ff3333;
    color: #ff3333;
    transform: rotate(180deg);
}

.checkbox-group {
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label a {
    color: #ff3333;
    text-decoration: none;
    transition: color 0.3s;
}

.checkbox-label a:hover {
    color: #ff4d4d;
    text-decoration: underline;
}

.error-message {
    display: block;
    color: #ff3333;
    font-size: 12px;
    margin-top: 0.5rem;
    font-family: 'Roboto Mono', monospace;
}

.error-messages {
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid #ff3333;
    border-radius: 3px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.error-messages .error {
    color: #ff3333;
    margin: 0;
    font-size: 14px;
}

.form-hint {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 0.5rem;
    font-family: 'Roboto Mono', monospace;
}

.auth-form .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: auto;
}

.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #2a2a2a;
}

.auth-footer p {
    color: #a0a0a0;
    font-size: 14px;
    margin: 0;
}

.auth-footer a {
    color: #ff3333;
    text-decoration: none;
    transition: color 0.3s;
}

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

.auth-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #2a2a2a;
}

.auth-divider span {
    padding: 0 1rem;
    color: #666;
    font-size: 14px;
    font-family: 'Roboto Mono', monospace;
}

.auth-divider-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    position: relative;
    flex-shrink: 0;
    align-self: stretch;
}

.auth-divider-vertical::before,
.auth-divider-vertical::after {
    content: '';
    flex: 1;
    width: 1px;
    background: #2a2a2a;
    min-height: 20px;
}

.auth-divider-vertical span {
    padding: 1rem 0;
    color: #666;
    font-size: 14px;
    font-family: 'Roboto Mono', monospace;
    white-space: nowrap;
}

.social-auth-section {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-auth {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 280px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 12px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Roboto Mono', monospace;
    transition: all 0.3s ease;
    border: 1px solid;
    font-weight: 400;
}

.social-btn i {
    font-size: 18px;
}

.social-btn span {
    flex: 1;
    text-align: center;
}

.social-vk {
    background: #4C75A3;
    border-color: #4C75A3;
    color: #fff;
}

.social-vk:hover {
    background: #3d5f87;
    border-color: #3d5f87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 117, 163, 0.3);
}

.social-google {
    background: #fff;
    border-color: #ddd;
    color: #333;
}

.social-google:hover {
    background: #f5f5f5;
    border-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-yandex {
    background: #FC3F1D;
    border-color: #FC3F1D;
    color: #fff;
}

.social-yandex:hover {
    background: #d6341a;
    border-color: #d6341a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 63, 29, 0.3);
}

@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-card h1 {
        font-size: 28px;
    }
    
    .auth-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .auth-divider-vertical {
        flex-direction: row;
        min-width: auto;
        width: 100%;
        min-height: 40px;
    }
    
    .auth-divider-vertical::before,
    .auth-divider-vertical::after {
        width: auto;
        flex: 1;
        height: 1px;
        min-height: 1px;
    }
    
    .auth-divider-vertical span {
        padding: 0 1rem;
    }
}
