/* ===== ALAP ===== */
html, body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    background: #f2f2f2;
    color: #000;
    overflow-x: hidden;
}

/* Fade-in animáció */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Lebegő animáció a kártyáknak */
@keyframes floatUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== WRAPPER ===== */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    animation: fadeIn 0.6s ease-out;
}

/* ===== BAL PANEL ===== */
.public-side {
    flex: 1;
    background: linear-gradient(to bottom right, #e6e6e6, #f7f7f7);
    padding: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.public-box {
    background: #fff;
    padding: 35px;
    border-radius: 14px;
    max-width: 600px;
    box-shadow: 0 0 25px rgba(0,0,0,0.08);
    animation: floatUp 0.7s ease-out;
}

.public-img {
    width: 100%;
    margin-top: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* ===== JOBB PANEL ===== */
.login-side {
    width: 450px;
    max-width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.login-box {
    width: 100%;
    max-width: 330px;
    animation: floatUp 0.8s ease-out;
}

/* ===== LOGÓ ===== */
.login-logo {
    text-align: center;
    margin-bottom: 25px;
}

.login-logo img {
    width: 120px;
    border-radius: 12px;
    animation: fadeIn 1s ease-out;
}

/* ===== INPUTOK IKONNAL ===== */
.input-group {
    margin-bottom: 20px;
    position: relative;
    width: 100%;
}

.input-group input {
    width: 100%;
    max-width: 100%;
    padding: 12px 12px 12px 40px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 15px;
    transition: 0.2s;
    box-sizing: border-box; /* <<< A LÉNYEG */
}

.input-group .icon {
    position: absolute;
    top: 38px;
    left: 12px;
    font-size: 16px;
    color: #777;
    pointer-events: none;
}

/* ===== GOMB ===== */
.login-btn {
    width: 100%;
    padding: 14px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.25s;
    margin-top: 10px;
}

.login-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== HIBA ===== */
.login-error {
    background: #ffdddd;
    color: #a00;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    animation: fadeIn 0.4s ease-out;
}

/* ===== MOBIL FIX ===== */
@media (max-width: 900px) {

    .login-wrapper {
        flex-direction: column;
        height: auto;
    }

    .public-side {
        padding: 20px;
    }

    .login-side {
        width: 100%;
        max-width: 100%;
        padding: 30px 20px;
        box-shadow: none;
        box-sizing: border-box;
    }

    .login-box {
        width: 100%;
        max-width: 100%;
    }

    .public-box {
        padding: 25px;
    }

    /* <<< A KRITIKUS MOBIL FIX >>> */
    .input-group {
        width: 100%;
    }

    .input-group input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}
