:root {
    --bg-color: #f0f7f4;
    --card-bg: #ffffff;
    --primary-mint: #a8dadc;
    --emerald: #457b9d;
    --sea-wave: #1d3557;
    --text-main: #2f3e46;
    --accent-green: #83c5be;
    --error-red: #e63946;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: var(--text-main);
}

.login-container {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

header h1 { font-weight: 600; font-size: 1.8rem; color: var(--sea-wave); margin-bottom: 0.5rem; }
header h1 span { color: var(--accent-green); }
header p { font-size: 0.9rem; color: #88a; margin-bottom: 1.5rem; }

.input-group { margin-bottom: 1rem; }

input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--bg-color);
    border-radius: 10px;
    background: #f9fbfb;
    outline: none;
    transition: all 0.3s;
}

input:focus { border-color: var(--accent-green); }

/* Ошибка */
.error-message {
    background: #ffeef0;
    color: var(--error-red);
    padding: 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid #f9d7da;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.btn-login {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background-color: var(--accent-green);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-login:disabled { background-color: #ccc; cursor: not-allowed; }

/* Лоадер */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.footer-links { margin-top: 1.5rem; }
.btn-reg { text-decoration: none; font-size: 0.85rem; color: var(--emerald); }