/**
 * Стили для формы SMS авторизации
 */

.sms-auth-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 0;
}

.sms-auth-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sms-auth-form h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #333;
    text-align: center;
}

.sms-auth-description {
    color: #666;
    margin: 0 0 20px;
    text-align: center;
    font-size: 14px;
}

.sms-auth-field {
    margin-bottom: 20px;
}

.sms-auth-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.sms-auth-field input[type="tel"],
.sms-auth-field input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.sms-auth-field input:focus {
    outline: none;
    border-color: #2271b1;
}

.sms-auth-button {
    width: 100%;
    padding: 12px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sms-auth-button:hover {
    background: #135e96;
}

.sms-auth-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.sms-auth-actions {
    margin-top: 20px;
    text-align: center;
}

.sms-auth-link-button {
    background: none;
    border: none;
    color: #2271b1;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 10px;
    margin: 0 5px;
}

.sms-auth-link-button:hover {
    color: #135e96;
}

.sms-auth-message {
    margin-top: 20px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.sms-auth-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sms-auth-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.sms-auth-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Для страницы wp-login.php */
#loginform .sms-auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

#loginform .sms-auth-divider:before {
    content: "";
    display: block;
    border-top: 1px solid #ddd;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
}

#loginform .sms-auth-divider span {
    background: #fff;
    padding: 0 10px;
    position: relative;
    z-index: 1;
    color: #646970;
}

#loginform .sms-auth-toggle {
    text-align: center;
    margin: 10px 0;
}

#loginform #sms-auth-login-form {
    margin-top: 20px;
}

#loginform #sms-auth-login-form input {
    margin-bottom: 10px;
}

/* Адаптивность */
@media (max-width: 480px) {
    .sms-auth-container {
        margin: 20px auto;
    }
    
    .sms-auth-form {
        padding: 20px;
    }
    
    .sms-auth-form h3 {
        font-size: 20px;
    }
}
