/* Lovefest Admin — modern login (RTL-first) */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body.lf-login-body {
    margin: 0;
    min-height: 100%;
    font-family: "Cairo", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #0d2744;
    overflow-x: hidden;
}

.lf-login-shell {
    display: flex;
    flex-direction: row-reverse;
    min-height: 100vh;
}

/* Brand panel */
.lf-login-aside {
    position: relative;
    flex: 1.1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 6vw, 4rem);
    overflow: hidden;
    background:
        radial-gradient(ellipse 120% 80% at 80% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 90% 70% at 10% 90%, rgba(0, 132, 253, 0.35) 0%, transparent 50%),
        linear-gradient(145deg, #0078e8 0%, #004ea8 48%, #003566 100%);
}

.lf-login-aside::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 30% 40%, rgba(139, 216, 242, 0.22) 0%, transparent 42%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 38%);
    animation: lf-login-float 18s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes lf-login-float {
    from {
        transform: translate(0, 0) rotate(0deg);
    }
    to {
        transform: translate(-3%, 2%) rotate(4deg);
    }
}

.lf-login-aside-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 420px;
}

.lf-login-aside-logo {
    width: min(280px, 72vw);
    height: auto;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.22));
    margin-bottom: 1.25rem;
}

.lf-login-aside h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.lf-login-aside p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
}

.lf-login-dots {
    display: flex;
    gap: 0.45rem;
    justify-content: center;
    margin-top: 2rem;
}

.lf-login-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

.lf-login-dots span:nth-child(2) {
    background: rgba(255, 255, 255, 0.65);
    transform: scale(1.15);
}

/* Form column */
.lf-login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 5vw, 3rem);
    background:
        linear-gradient(180deg, #f5f8fc 0%, #eef3f9 100%);
    position: relative;
}

.lf-login-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/img/login background.png");
    background-size: cover;
    background-position: center;
    opacity: 0.06;
    pointer-events: none;
}

.lf-login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: clamp(2rem, 5vw, 2.75rem);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 4px 24px rgba(13, 39, 68, 0.06),
        0 24px 56px rgba(0, 78, 168, 0.09);
}

.lf-login-card-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.lf-login-card-header h2 {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0d2744;
}

.lf-login-card-header span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #5c738c;
}

.lf-login-mobile-logo {
    display: none;
    width: 180px;
    height: auto;
    margin: 0 auto 1rem;
}

.lf-field {
    margin-bottom: 1rem;
}

.lf-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.lf-input-wrap i {
    position: absolute;
    right: 16px;
    font-size: 1rem;
    color: #0084fd;
    opacity: 0.75;
    pointer-events: none;
}

.lf-input-wrap input {
    width: 100%;
    height: 54px;
    padding: 0 48px 0 16px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #0d2744;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lf-input-wrap input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.lf-input-wrap input:hover {
    border-color: #cbd5e1;
}

.lf-input-wrap input:focus {
    outline: none;
    border-color: #0084fd;
    box-shadow: 0 0 0 4px rgba(0, 132, 253, 0.15);
}

.lf-login-submit {
    width: 100%;
    height: 54px;
    margin-top: 0.5rem;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #29b6f6 0%, #0084fd 45%, #0066cc 100%);
    box-shadow: 0 8px 24px rgba(0, 132, 253, 0.38);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lf-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 132, 253, 0.45);
}

.lf-login-submit:active {
    transform: translateY(0);
}

.lf-login-alert {
    margin-top: 1.25rem;
    padding: 12px 14px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    background: rgba(229, 57, 53, 0.08);
    color: #c62828;
    border: 1px solid rgba(229, 57, 53, 0.2);
}

.lf-login-alert:empty {
    display: none;
}

@media (max-width: 900px) {
    .lf-login-shell {
        flex-direction: column;
    }

    .lf-login-aside {
        min-height: auto;
        padding: 2rem 1.5rem 2.5rem;
        flex: none;
    }

    .lf-login-aside-logo {
        width: min(220px, 55vw);
    }

    .lf-login-main {
        flex: 1;
        padding-top: 0;
        margin-top: -2rem;
        align-items: flex-start;
    }

    .lf-login-card {
        margin-top: 0;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -8px 40px rgba(13, 39, 68, 0.08);
    }
}

@media (max-width: 480px) {
    .lf-login-aside-inner br {
        display: none;
    }

    .lf-login-dots {
        margin-top: 1.25rem;
    }
}
