@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.background {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background .shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, #FFA500, #FF8C00);
    opacity: 0.1;
}

.background .shape:first-child {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
}

.background .shape:last-child {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
}

.login-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.logo {
    font-size: 60px;
    color: #FFA500;
    margin-bottom: 20px;
}

.login-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.input-group label {
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    color: #777;
    font-size: 16px;
}

.input-with-icon input {
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    width: 100%;
    transition: all 0.3s ease;
}

.input-with-icon input:focus {
    border-color: #FFA500;
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.2);
    outline: none;
}

.send-code-btn, .login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-weight: 500;
}

.send-code-btn {
    background-color: #007bff;
    color: white;
}

.send-code-btn:hover {
    background-color: #0069d9;
    transform: translateY(-2px);
}

.login-button {
    background-color: #FFA500;
    color: white;
    margin-top: 10px;
}

.login-button:hover {
    background-color: #FF8C00;
    transform: translateY(-2px);
}

.register-text {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.register-text a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.register-text a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.error-message {
    margin: 15px 0;
    font-size: 14px;
    min-height: 20px;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-container {
    animation: fadeIn 0.5s ease forwards;
}

/* Адаптивность */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .login-title {
        font-size: 24px;
    }
}