body {
    background: #eef2f7;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-card {
    background: white;
    padding: 30px;
    width: 320px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.login-card h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-card input {
    width: 100%;
    padding: 12px;
    margin: 8px 0 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.login-card button {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.error-box {
    background: #ffd6d6;
    padding: 10px;
    color: #900;
    margin-bottom: 15px;
    border-left: 4px solid red;
    border-radius: 4px;
}

/* =========================================================
   LOGIN PAGE – MOBILE FIRST
========================================================= */
.login-page .login-container {
    min-height: 100vh;


    background:
        linear-gradient(
            rgba(0,0,0,0),
            rgba(0,0,0,0)
        ),
        url('/public/assets/images/bg.jpg') center / cover no-repeat fixed;

    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .login-container {
        background-attachment: scroll; /* FIX iOS / Android */
    }
}

/* container full screen */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* card */
.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: 30px 26px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
        backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.95);
}

/* titlu */
.login-card h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 600;
    color: #1a2332;
}

/* form */
.login-card form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
/* desktop – compactare formular */
@media (min-width: 901px) {
    .login-card form {
        gap: 10px;
    }
}

/* inputuri mari, mobile friendly */
.login-card input[type="email"],
.login-card input[type="password"] {
    width: 100%;
    padding: 14px 14px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #ccd1d9;
    outline: none;
}

.login-card input:focus {
    border-color: #007bff;
}

/* buton */
.login-card button {
    margin-top: 10px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: #007bff;
    color: #fff;
}

.login-card button:hover {
    background: #005fcc;
}

/* eroare */
.error-box {
    background: #ffe5e5;
    border: 1px solid #ffb3b3;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 48px; /* spațiu FIX pentru icon */
}

/* icon ochi */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);

    width: 22px;
    height: 14px;

    cursor: pointer;
}

/* forma ochiului */
.toggle-password::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #666;
    border-radius: 50% / 70%;
}

/* pupilă */
.toggle-password::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #666;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* ochi tăiat */
.toggle-password.hidden::after {
    width: 26px;
    height: 2px;
    background: #666;
    border-radius: 0;
    top: 50%;
    left: -4px;
    transform: rotate(-45deg);
}

/* =========================================================
   LOGIN BLOCKED POPUP – PREMIUM UI
========================================================= */

.login-block-popup {
    position: fixed;
    inset: 0;
    background: rgba(20, 24, 35, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* CARD */
.login-block-popup .popup-box {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 520px;           /* mai mare */
    padding: 38px 36px;
    border-radius: 22px;

    box-shadow:
        0 30px 60px rgba(0,0,0,0.22),
        0 6px 14px rgba(0,0,0,0.12);

    text-align: center;
    overflow: hidden;           /* pt simbolul de fundal */
    animation: popupFadeIn 0.25s ease-out;
}

/* TITLU – accentuat */
.login-block-popup .popup-box h3 {
    font-size: 26px;
    font-weight: 700;
    color: #c53030;             /* roșu controlat, nu agresiv */
    margin-bottom: 14px;
    letter-spacing: 0.2px;
}

/* SUBTEXT */
.login-block-popup .popup-box p {
    font-size: 15.5px;
    line-height: 1.55;
    color: #4a5568;
    margin-bottom: 14px;
}

/* CONTACT */
.login-block-popup .popup-box strong {
    color: #007bff;
    font-weight: 600;
}

/* TIMER */
.login-block-popup #timer {
    display: inline-block;
    margin-top: 8px;

    font-size: 22px;
    font-weight: 600;
    color: #c53030;
    letter-spacing: 0.6px;
}

/* ETICHETĂ DE CONTEXT */
.login-block-popup .popup-box::before {
    content: "Security restriction";
    display: block;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #718096;
    margin-bottom: 12px;
}

/* SEMN DE EXCLAMARE – FUNDAL */
.login-block-popup .popup-box::after {
    content: "!";
    position: absolute;
    bottom: -40px;
    right: -20px;

    font-size: 220px;
    font-weight: 800;
    line-height: 1;

    color: rgba(0,0,0,0.04);   /* foarte șters */
    pointer-events: none;
    user-select: none;
}

/* ANIMAȚIE */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* MOBILE */
@media (max-width: 520px) {
    .login-block-popup .popup-box {
        padding: 30px 24px;
        border-radius: 16px;
    }

    .login-block-popup .popup-box h3 {
        font-size: 22px;
    }
}
