:root {
    --primary-color: #4a90e2;
    --error-color: #dc3545;
    --card-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff9800, #ff5722); /* Оранжевый градиент */
    padding: 1rem;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    margin: 1rem;
}

.logo {
    display: block;
    max-width: 180px;
    margin: 0 auto 2rem;
    border-radius: 12px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.form-title {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    color: #495057;
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.875rem;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f8f9fa;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(74, 144, 226, 0.25);
    background-color: white;
}

.input-group {
    position: relative;
    display: flex;
    gap: 0;
}

.country-select {
    flex: 0 0 30%;
    border: 2px solid #e9ecef;
    border-radius: 10px 0 0 10px;
    padding: 0.875rem;
    background-color: #f8f9fa;
    font-weight: 500;
}

.phone-input {
    flex: 1;
    border-radius: 0 10px 10px 0;
    border-left: none;
}

.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 1.125rem;
    transition: var(--transition);
    width: 100%;
    margin-top: 1.5rem;
}

.btn-primary:hover {
    background: #357abd;
    transform: translateY(-2px);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
}

.btn-link:hover {
    color: #357abd;
    text-decoration: underline;
}

.alert {
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert i {
    font-size: 1.25rem;
}

@media (max-width: 576px) {
    .auth-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .form-title {
        font-size: 1.75rem;
    }

    .btn-primary {
        padding: 0.875rem;
    }
}