/* Alap */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #eef3ff 0, #f5f7fb 40%, #f9fafc 100%);
    color: #1f2933;
    overflow-y: auto; /* <<< GÖRGETHETŐ OLDAL */
}

/* Oldal konténer */
.page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 24px;
    align-items: flex-start; /* <<< NEM KÖZÉPRE SZORÍTJA, ÍGY NEM VÁG LE */
}

/* Login kártya */
.login-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 32px 28px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.brand-text h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.brand-text p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #6b7280;
}

/* Címek */
h2 {
    margin: 10px 0 4px;
    font-size: 22px;
}

.subtitle {
    margin: 0 0 20px;
    font-size: 13px;
    color: #6b7280;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.login-form label span {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #4b5563;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    outline: none;
    transition: 0.18s ease;
    background-color: #f9fafb;
}

.login-form input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.25);
    background-color: #ffffff;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4b5563;
}

.link {
    font-size: 13px;
    color: #4f46e5;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* Belépés gomb */
.primary-btn {
    margin-top: 6px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s ease;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.35);
}

.primary-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.primary-btn:active {
    transform: translateY(0);
}

/* Stílusválasztó */
.style-section {
    margin-top: 18px;
    align-items: center;
}

.style-label {
    margin: 0 0 8px;
    font-size: 13px;
    color: #6b7280;
}

.style-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.style-card {
    border: none;
    padding: 10px 6px;
    border-radius: 14px;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: 0.18s ease;
    font-size: 11px;
    color: #4b5563;
}

.style-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Ikon színek */
.style-fluent .style-icon {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #ffffff;
}

.style-apple .style-icon {
    background: #f3f4f6;
    color: #111827;
}

.style-material .style-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
}

.style-custom .style-icon {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: #ffffff;
}

/* Hover */
.style-card:hover {
    background: #eef2ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

/* Lábjegyzet */
.footnote {
    margin-top: 14px;
    font-size: 11px;
    color: #9ca3af;
    align-items: center;
}

/* Mobil */
@media (max-width: 520px) {
    .login-card {
        padding: 24px 18px 22px;
        border-radius: 18px;
    }

    .style-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}
.style-card img {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
    opacity: 0.95;
    transition: 0.2s ease;
}

.style-card:hover img {
    opacity: 1;
    transform: scale(1.08);
}

