/* Новая система переменных с вашими цветами */
:root {
    --gradient-start: #FF872F;
    --gradient-end: #EC5B10;
    --light-gray: #F2F2F2;
    --light-bg: #F8F7F7;
    --medium-gray: #898989;
    --dark-gray: #5A5A5A;
    --text-dark: #343434;
    --pure-white: #FFFFFF;
    --accent-orange: #FF872F;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.3);
    --input-bg-inactive: #F8F7F7;
    --input-bg-active: #FFFFFF;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Ubuntu', sans-serif;
    overflow: hidden;
}

body {
    background: linear-gradient(135deg, var(--light-bg), var(--light-gray));
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Декоративные элементы */
.bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    transition: opacity 1.5s ease;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-start);
    top: -100px;
    left: -100px;
    animation: float 12s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--gradient-end);
    bottom: -80px;
    right: -80px;
    animation: float 10s ease-in-out infinite;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-orange);
    top: 40%;
    right: 15%;
    animation: float 8s ease-in-out infinite;
}

/* Основной контейнер */
.login-layout {
    position: relative;
    width: 90%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 20px 50px var(--shadow-medium);
    overflow: hidden;
    z-index: 10;
    /* Убрана белая обводка */
    animation: fadeIn 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    transform: none;
}

/* Градиентный верхний бар */
.login-header {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    padding: 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0.1) 100%);
    animation: gradientShift 6s ease infinite;
    background-size: 200% 200%;
}

/* Стили заголовков */
.login-layout h1 {
    font-size: 2.4rem;
    /* Исправлено: Ubuntu Medium (500) */
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--pure-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    letter-spacing: -0.5px;
}

.login-layout h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 0;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

/* Контейнер формы */
.login-container {
    padding: 40px 30px;
}

/* Стили формы */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
}

.input-group input[type="text"],
.input-group input[type="password"] {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 1rem;
    background-color: #F8F7F7; /* Неактивное состояние */
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.input-group input[type="text"]:focus,
.input-group input[type="password"]:focus {
    border-color: var(--accent-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 135, 47, 0.2);
    transform: translateY(-2px);
    background-color: #FFFFFF;
}

/* Иконки для полей ввода - исправлено: всегда видны */
.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
    transition: all 0.3s ease;
    pointer-events: none;
    /* Гарантированная видимость */
    z-index: 2;
    font-size: 1.2rem;
}

.input-group input:focus + .input-icon {
    color: var(--accent-orange);
    /* Убрано скрытие иконок */
}

/* Стиль кнопки */
.login-form button[type="submit"] {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--pure-white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    box-shadow: 0 6px 15px rgba(236, 91, 16, 0.4);
    position: relative;
    overflow: hidden;
}

.login-form button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: 0.5s;
}

.login-form button[type="submit"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(236, 91, 16, 0.5);
}

.login-form button[type="submit"]:hover::before {
    left: 100%;
}

.login-form button[type="submit"]:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(236, 91, 16, 0.4);
}

/* Дополнительные элементы */
.error-message {
    text-align: center;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 99, 71, 0.15);
    border-radius: 8px;
    color: #d32f2f;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.forgot-password {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.forgot-password a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.forgot-password a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.forgot-password a:hover::after {
    width: 100%;
}

/* Адаптивность */
@media (max-width: 768px) {
    .login-layout {
        width: 95%;
        max-width: 100%;
    }
    
    .login-header {
        padding: 25px 0;
    }
    
    .login-layout h1 {
        font-size: 2rem;
    }
    
    .login-layout h2 {
        font-size: 1rem;
    }
    
    .login-container {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .login-header {
        padding: 20px 0;
    }
    
    .login-layout h1 {
        font-size: 1.8rem;
    }
    
    .input-group input[type="text"],
    .input-group input[type="password"] {
        padding: 14px 20px 14px 45px;
        font-size: 0.95rem;
    }
    
    .login-form button[type="submit"] {
        padding: 15px;
        font-size: 1rem;
    }
     .submit-btn {
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 6px 15px rgba(236, 91, 16, 0.4);
    }

     .submit-btn.button-hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(236, 91, 16, 0.5);
    }

     .error-message {
    transition: opacity 0.3s ease;
    }

     .shape {
    opacity: 0;
    transition: opacity 1s ease;
     }
}