/* Подключаем шрифт Manrope */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700&display=swap");

:root {
    --bg: #121212;
    --card: #1f1f1f;
    --card-2: #1a1a1a;
    --accent: #4fc3f7;
    --accent-2: #82e5ff;
    --muted: #777;
    --text: #f0f0f0;
    --border: #333;
    --shadow: rgba(0, 0, 0, 0.6);
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: "Manrope", sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, rgba(31, 31, 31, 0.98), rgba(26, 26, 26, 0.98));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 30px var(--shadow);
    position: relative;
}

.login-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 4px;
    width: 100%;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.login-card h2 {
    margin: 0 0 18px 0;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.login-card .sub {
    display: block;
    margin-bottom: 18px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.error {
    background-color: #2a1a1a;
    border: 1px solid rgba(255, 0, 0, 0.12);
    color: #ffb3b3;
    padding: 8px 10px;
    margin-bottom: 14px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.input-field {
    width: 100%;
    padding: 10px 12px;
    margin: 8px 0 14px 0;
    background-color: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent);
    background-color: #2a2a2a;
    box-shadow: 0 0 0 4px rgba(79, 195, 247, 0.06);
}

label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}

.btn {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    background: linear-gradient(180deg, #1c7ed6, #1864b5);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 6px 18px rgba(24, 100, 181, 0.12);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(24, 100, 181, 0.18);
}

.btn:active {
    transform: translateY(0);
    opacity: 0.95;
}

@media (max-width: 480px) {
    .login-card {
        padding: 20px;
        border-radius: 14px;
    }

    .login-card h2 {
        font-size: 18px;
    }

    .btn {
        padding: 12px;
        border-radius: 12px;
    }
}
