/* ===== ALAP ===== */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(67, 206, 162, 0.22), transparent 35%),
        radial-gradient(circle at bottom right, rgba(24, 90, 157, 0.28), transparent 40%),
        linear-gradient(135deg, #0f172a 0%, #123c69 45%, #1b7f79 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* ===== LOGIN KÁRTYA ===== */
.container {
    width: 100%;
    margin-top: -120px;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 24px;
    padding: 42px 34px 32px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    position: relative;
    overflow: hidden;
}

.container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.10),
        rgba(255, 255, 255, 0.03)
    );
    pointer-events: none;
}

/* ===== CÍM ===== */
h1 {
    margin: 0 0 28px;
    text-align: center;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

/* ===== FORM ===== */
form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* ===== INPUTOK ===== */
input[type="text"],
input[type="password"] {
    width: 100%;
    height: 56px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 17px;
    padding: 0 18px;
    outline: none;
    transition: 0.25s ease;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: rgba(82, 255, 200, 0.65);
    background: rgba(255, 255, 255, 0.18);
    box-shadow:
        0 0 0 4px rgba(67, 206, 162, 0.14),
        0 10px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

/* rejtett csrf mezőhöz */
input[type="hidden"] {
    display: none;
}

/* ===== GOMB ===== */
button {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 16px;
    margin-top: 6px;
    background: linear-gradient(135deg, #2dd4bf 0%, #22c55e 100%);
    color: #062b22;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow:
        0 12px 24px rgba(34, 197, 94, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 30px rgba(34, 197, 94, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    filter: brightness(1.03);
}

button:active {
    transform: translateY(0);
}

/* ===== HIBAÜZENET ===== */
.error {
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(255, 120, 120, 0.28);
    color: #ffe2e2;
    text-align: center;
    font-size: 15px;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* ===== MOBIL ===== */
@media (max-width: 600px) {
    body {
        padding: 14px;
    }

    .container {
        padding: 28px 20px 22px;
        border-radius: 20px;
    }

    h1 {
        font-size: 34px;
        margin-bottom: 22px;
    }

    input[type="text"],
    input[type="password"],
    button {
        height: 52px;
        font-size: 16px;
        border-radius: 14px;
    }
}