/* =========================================================
   LOGO PERSONALIZAT + PORTAL + SLOGAN
========================================================= */
.login h1 a {
    display: block; /* important pentru flex */
    background-image: url('images/logo-login.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 300px;
    height: 150px;
    margin-bottom: 10px; /* spațiu între logo și Portal */
    animation: fadeIn 1.2s ease-out forwards;
    opacity: 0;
}

.portal-text {
    background: linear-gradient(90deg, #0058ff, #00a1ff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    font-size: 24px;
    animation: fadeIn 1.5s ease-out 0.4s forwards;
}

/* =========================================================
   FUNDAL PAGINĂ — GRADIENT ANIMAT
========================================================= */
body.login {
    background: linear-gradient(135deg, #ffffff, #f5f5f5, #e6e6e6, #f0f0f0);
    background-size: 500% 500%;
    animation: pearlSilver 22s ease-in-out infinite;

    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
}

@keyframes pearlSilver {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Gradient animat */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Fade-in general */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Glow ușor pulsant */
@keyframes softPulse {
    0% { box-shadow: 0 5px 20px rgba(0,88,255,0.4); }
    50% { box-shadow: 0 5px 25px rgba(0,88,255,0.6); }
    100% { box-shadow: 0 5px 20px rgba(0,88,255,0.4); }
}

/* =========================================================
   CARD LOGIN — GLASS + ANIMAȚIE DE APARIȚIE
========================================================= */
#login {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    padding: 30px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.45);

    box-shadow: 
        0 10px 35px rgba(0,0,0,0.18),
        0 0 25px rgba(0,88,255,0.25);

    transition: all 0.3s ease;

    opacity: 0;
    animation: fadeIn 1.1s ease-out 0.2s forwards;
    margin-top: 0 !important;
}

/* Hover mai accentuat */
#login:hover {
    box-shadow: 
        0 15px 40px rgba(0,0,0,0.45),
        0 0 30px rgba(0,88,255,0.75);
}

/* =========================================================
   CÂMPURI LOGIN — ANIMARE LA FOCUS
========================================================= */
.login form .input, 
.login input[type="text"], 
.login input[type="password"] {
    border-radius: 10px;
    border: 1px solid rgba(0,88,255,0.45);
    padding: 12px 15px;
    width: 100%;
    background: rgba(255,255,255,0.8);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.25s ease, transform 0.25s ease;
}

.login form .input:focus, 
.login input[type="text"]:focus, 
.login input[type="password"]:focus {
    border-color: #00a1ff;
    box-shadow: 0 0 12px rgba(0,161,255,0.5) inset;
    background: rgba(255,255,255,0.95);
    transform: scale(1.02);
    outline: none;
}

/* =========================================================
   AUTOFILL — GLOW PULSAT + SLIDE ON HOVER
========================================================= */
/* Glow pulsant pentru autofill */
@keyframes autofillPulse {
    0% {
        box-shadow: 0 0 10px rgba(0,161,255,0.3) inset;
    }
    50% {
        box-shadow: 0 0 15px rgba(0,161,255,0.6) inset;
    }
    100% {
        box-shadow: 0 0 10px rgba(0,161,255,0.3) inset;
    }
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.85) inset !important;
    background-color: rgba(255,255,255,0.85) !important;

    border: 1px solid #00a1ff !important;
    border-radius: 10px !important;
    color: #0a0a0a !important;

    animation: autofillPulse 3.5s infinite ease-in-out;
    transition: all 0.3s ease !important;
}

/* =========================================================
   BUTON LOGIN — GLOW PULSAT + SLIDE ON HOVER
========================================================= */
.wp-core-ui .button-primary {
    background: linear-gradient(135deg, #0058ff, #00a1ff);
    border-color: transparent;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,88,255,0.4);

    font-weight: 700;
    color: #fff;

    animation: softPulse 3.5s infinite ease-in-out;
    transition: all 0.3s ease;
}

.wp-core-ui .button-primary:hover {
    background: linear-gradient(135deg, #0047cc, #0090e6);
    transform: translateY(-2px);
}

/* =========================================================
   TEXT SUB LOGO — FADE + GLOW
========================================================= */
.portal-text {
    text-align: center;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-top: -10px;
    margin-bottom: 20px;

    background: linear-gradient(90deg, #0058ff, #00a1ff, #00d4ff); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow: 0 0 12px rgba(0,161,255,0.4);

    opacity: 0;
    animation: fadeIn 1s ease-out 0.4s forwards;
}

/* =========================================================
   MESAJ PERSONALIZAT LOGIN
========================================================= */
.custom-login-message {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #0a0a0a;
    text-shadow:
        0px 1px 0px #fff,
        0px 2px 3px rgba(0,0,0,0.25),
        0px 5px 10px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #eef2f5, #fafbfc);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;

    opacity: 0;
    animation: fadeIn 1s ease-out 0.6s forwards;
}

/* =========================================================
   LINKURI LOGIN
========================================================= */
#nav a {
    color: #f0f0f0;
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.2s ease;
}

#nav a:hover {
    color: #f0f0f0;
    text-shadow: 0 0 5px rgba(0,88,255,0.3);
}

/* =========================================================
   FOOTER LOGIN NORMAL
========================================================= */
#custom-login-footer {
    font-size: 14px;
    color: #555;
    text-align: center;
    margin-top: 20px;

    opacity: 0;
    animation: fadeIn 1.2s ease-out 1s forwards;
}

#custom-login-footer a {
    color: #0a0a0a;
    font-weight: 600;
    transition: all 0.3s ease;
}

#custom-login-footer a:hover {
    color: #0a0a0c;
    text-shadow: 0 0 5px rgba(0,88,255,0.9);
}

/* =========================================================
   ELEMENTE DE ASCUNS
========================================================= */
#backtoblog,
.privacy-policy-page-link,
.privacy-policy-link {
    display: none !important;
}

#language-switcher,
#language-switcher * ,
.wp-lang-dropdown,
.wp-lang-dropdown * {
    display: none !important;
}

/* =========================================================
   FOOTER DE JOS — FADE-IN
========================================================= */
#custom-login-bottom-footer {
    position: absolute;
    bottom: 5px;
    width: 100%;
    text-align: center;
    padding: 10px 0;

    background: rgba(255,255,255,0.08);
    border-top: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px 12px 0 0;

    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);

    opacity: 0;
    animation: fadeIn 1.5s ease-out 1.2s forwards;
}

#custom-login-bottom-footer p {
    font-size: 15px;
    color: #0a0a0a;
}

#custom-login-bottom-footer .login-slogan {
    font-style: italic;
    color: #0a0a0a;
    font-weight: 100;
}

/* Fix footer suprapus pe mobil */
@media (max-width: 768px) {
    #custom-login-bottom-footer {
        position: static !important;
        margin-top: 20px;
        border-radius: 0;
        padding: 15px 0;
    }

    body.login {
        justify-content: flex-start !important;
        padding-top: 40px;
    }

    #login {
        margin-bottom: 20px !important;
    }
}
