* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body h1 {
   
    /* min-width: 50vh;      */
    max-width: 800px;
    width: 100%;   
    
    margin-left: auto;
    margin-right: auto;
 
    
}
#login-error-container {
    color: rgba(255, 0, 0, 0.644);
    /* opacity: 0.8; */
    font-family: inherit;
    font-size: small;
}
body {
    /* font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9edf2 100%);
    min-height: 100vh; */
    /* display: flex; */
    align-items: center;
    justify-content: center;
    /* padding: 20px; */
    font-family: Arial, sans-serif;
    /* font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; */
    margin: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9edf2 100%); 
}

/* Карточка формы */
/* .login-container * {
    
} */
.login-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 2rem 1.8rem 2.2rem;
    width: 100%;
    /* max-width: 500px; */
    /* align-items: normal; */
    /* align-self: center; 
    align-items: center;  */
    /* transition: all 0.2s ease; */
        margin-left: auto;
    margin-right: auto;
}

h1 a {
    text-decoration: none;
    color: black;
}

/* Заголовок (можно добавить, не ломает форму) */
.login-container h1 {
    align-self: center;
    font-size: 1.8rem;
    /* font-weight: 100; */
    font: bold;
    margin-bottom: 0.4rem;
    color: #1e293b;
    letter-spacing: -0.3px;
}

.login-container .sub {
    /* align: center; */
    color: #5b6e8c;
    margin-bottom: 1.8rem;
    font-size: 0.9rem;
    border-left: 3px solid #000000;
    padding-left: 10px;
}

/* Сама форма */
#loginForm {
    display: flex;
    margin: au;
    flex-direction: column;
    align-items:normal;
    align-self: center;
    /* width: 500px; */
    gap: 2.4rem;
}

/* Группа: label + input */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    color: #334155;
    text-transform: uppercase;
}

input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fefefe;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.2s ease;
    outline: none;
    color: #0f172a;
}

input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background-color: #ffffff;
}

/* Автозаполнение — не ломаем стиль */
input:-webkit-autofill,
input:-webkit-autofill:focus {
    transition: background-color 600000s 0s, color 600000s 0s;
}

/* Кнопка */
button {
    margin-top: 8px;
    background: #1e293b;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

button:hover {
    background: #0f172a;
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

button:active {
    transform: scale(0.96);
}

/* Доп. ссылка (опционально) */
.extra-links {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.85rem;
}

.extra-links a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.extra-links a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
    }
    input {
        padding: 10px 14px;
    }
    button {
        padding: 10px 16px;
    }
}

/* Сообщения об ошибках (если добавите) */
.error-message {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 4px;
}
.main {
    /* resize: horizontal;    */
    /* display: flex; */
    /* justify-content: center;  */
    /* align-items: center;    */
    /* overflow: auto;     */
    max-width: 800px;
    width: 100%; 
    height: auto;
    /* min-height: max-content; */
    background-image: linear-gradient(135deg, #0a357a34 10%, #ffbc7e6b 100%);
    /* background-image: linear-gradient(135deg, #0a357a34 10%, #917eff6b 100%); */
    /* linear-gradient(to right top, #051937, #004d7a, #008793, #00bf72, #a8eb12);  */
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10%;        
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.05);
}