/* Сброс отступов для всего */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #0a0c0f;
    min-height: 100vh;
}

.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0c0f;

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    padding: 16px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    background: #15181c;
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.6);
    border: 1px solid #2a2f35;
    margin: 16px;
}

/* Мобильная версия */
@media (max-width: 480px) {
    .login-container {
        padding: 32px 20px;
        border-radius: 20px;
        margin: 12px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 13px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-input {
        padding: 10px 14px;
        font-size: 14px;
    }

    .btn-login {
        padding: 12px;
        font-size: 15px;
    }

    .login-footer p {
        font-size: 13px;
    }

    /* Для очень маленьких экранов */
    @media (max-width: 360px) {
        .login-container {
            padding: 24px 16px;
            margin: 8px;
        }
    }
}

/* Для планшетов */
@media (min-width: 481px) and (max-width: 768px) {
    .login-container {
        max-width: 380px;
        padding: 36px 28px;
    }
}

/* Остальные стили (без изменений) */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h2 {
    color: #e8edf2;
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.subtitle {
    color: #8b949e;
    font-size: 14px;
    margin: 0;
}

.alert-error {
    background: #2d1c1c;
    border-left: 4px solid #ff4d4d;
    color: #ff8a8a;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    border: 1px solid #442c2c;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #b1bac4;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    background: #1e2329;
    border: 1px solid #2f353d;
    border-radius: 12px;
    padding: 12px 16px;
    color: #e8edf2;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
    width: 100%;
}

.form-input:focus {
    border-color: #3b82f6;
    background: #252b33;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

.form-input::placeholder {
    color: #5a6572;
    font-size: 14px;
}

.btn-login {
    background: #499815;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 8px;
    width: 100%;
}

.btn-login:hover {
    background: #2563eb;
}

.btn-login:active {
    transform: scale(0.98);
}

.login-footer {
    margin-top: 28px;
    text-align: center;
    border-top: 1px solid #252b33;
    padding-top: 24px;
}

.login-footer p {
    color: #8b949e;
    font-size: 14px;
    margin: 8px 0;
}

.link-register, .link-forgot {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.link-register:hover, .link-forgot:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.user-info {
    margin-top: 24px;
    padding: 16px;
    background: #1e2329;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #2f353d;
}

.user-info p {
    color: #b1bac4;
    margin: 0 0 12px 0;
    font-size: 14px;
}

.btn-logout {
    display: inline-block;
    background: #dc2626;
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: #b91c1c;
}

/* Добавьте в ваш CSS файл */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.checkbox-label {
    color: #b1bac4;
    font-size: 14px;
    cursor: pointer;
}

.error-message {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.alert-success {
    background: #1a2e1a;
    border-left: 4px solid #4caf50;
    color: #a5d6a7;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    border: 1px solid #2d4a2d;
}