.login-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

    .login-header h1 {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .login-header p {
        color: #666;
        font-size: 14px;
    }

.form-group {
    margin-bottom: 20px;
    position: relative;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #555;
        font-size: 14px;
        font-weight: 500;
    }

    .form-group input {
        width: 100%;
        padding: 12px 40px 12px 15px; /* Увеличиваем правый отступ */
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 14px;
        transition: all 0.3s;
        box-sizing: border-box; /* Важно! */
    }

        .form-group input:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
            outline: none;
        }

.forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

    .forgot-password a {
        color: #667eea;
        font-size: 13px;
        text-decoration: none;
        transition: color 0.3s;
    }

        .forgot-password a:hover {
            color: #764ba2;
            text-decoration: underline;
        }

.login-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #667eea, #764ba2);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

    .login-button:hover {
        background: linear-gradient(to right, #5a6fd1, #6a4296);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

.signup-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

    .signup-link a {
        color: #667eea;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
    }

        .signup-link a:hover {
            color: #764ba2;
            text-decoration: underline;
        }

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    pointer-events: none;
    line-height: 1; /* Убираем лишнее пространство вокруг иконки */
}

/* Добавим обертку для более точного позиционирования */
.input-container {
    position: relative;
    width: 100%;
}

.gradient-text {
    background: linear-gradient(to right, #667eea, #612e90);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
}

.text-danger {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.text-green {
    color: #64AE33;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.error_container_main {
    position: relative;
    height: 50px;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.button-disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
