/* Стили для страницы входа */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #181A1B;
    padding: 20px;
}

.login-card {
    background: #1E2021;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    font-family: 'Source Sans Pro', sans-serif;
}

.login-header {
    background: linear-gradient(135deg, #313538 0%, #1b1f22 100%);
    color: #B7B1A7;
    padding: 40px 30px;
    text-align: center;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
}

.login-header p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
    font-weight: 300;
}

.login-body {
    padding: 40px 30px;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #B7B1A7;
    font-weight: 500;
    font-size: 15px;
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Source Sans Pro', sans-serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus,
.login-form input[type="email"]:focus {
    border-color: #2C446E;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 68, 110, 0.1);
}

.password-toggle {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.password-toggle label {
    margin: 0;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #313538 0%, #1b1f22 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Source Sans Pro', sans-serif;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 68, 110, 0.25);
}

.login-btn:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #E0E0E0;
}

.login-footer p {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}

.login-footer a {
    color: #2C446E;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #1a2a4a;
    text-decoration: underline;
}

.message {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.message.error {
    background-color: #ffeaea;
    color: #A03F45;
    border: 1px solid #ffc4c4;
}

.message.success {
    background-color: #eaffea;
    color: #2B6E55;
    border: 1px solid #a4ffa4;
}

.message.info {
    background-color: #eaf4ff;
    color: #2C446E;
    border: 1px solid #a4c8ff;
}

/* Адаптивность */
@media (max-width: 480px) {
    .login-card {
        max-width: 100%;
    }
    
    .login-header {
        padding: 30px 20px;
    }
    
    .login-body {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 20px;
    }
    
    .login-header p {
        font-size: 14px;
    }
}

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

.login-card {
    animation: fadeIn 0.5s ease-out;
}

/* Стили для вкладок навигации (если понадобятся) */
.form-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #E0E0E0;
}

.form-tab {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.form-tab.active {
    color: #2C446E;
}

.form-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #2C446E 0%, #1a2a4a 100%);
    border-radius: 3px 3px 0 0;
}