/* ========================================
   Fastliv Auth Split Layout
   Primary: #ffcc0f | Secondary: #25282d
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

.fl-auth * {
    box-sizing: border-box;
}

/* Preserve Nioicon font against global font overrides */
.fl-auth .ni,
.fl-auth em.icon,
.fl-auth .icon {
    font-family: "Nioicon" !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fl-auth {
    --fl-primary: #ffcc0f;
    --fl-primary-dark: #e5b90b;
    --fl-secondary: #25282d;
    --fl-secondary-soft: #2f333a;
    --fl-text: #25282d;
    --fl-muted: #6b7280;
    --fl-border: #e5e7eb;
    --fl-white: #ffffff;
    --fl-radius: 14px;
    --fl-radius-sm: 10px;
    --fl-shadow: 0 18px 50px rgba(37, 40, 45, 0.18);

    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--fl-text);
    background: var(--fl-secondary);
}

.fl-auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100%;
}

/* Left visual panel */
.fl-auth-visual {
    position: relative;
    background: var(--fl-secondary);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 56px 48px;
}

.fl-auth-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--fl-auth-image);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.fl-auth-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(37, 40, 45, 0.12) 0%,
        rgba(37, 40, 45, 0.35) 45%,
        rgba(37, 40, 45, 0.88) 100%
    );
}

.fl-auth-visual-content {
    position: relative;
    z-index: 2;
    max-width: 460px;
    color: var(--fl-white);
}

.fl-auth-visual-content h2 {
    margin: 0 0 14px;
    font-size: clamp(1.9rem, 2.6vw, 2.55rem);
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.fl-auth-visual-content p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

/* Right form panel */
.fl-auth-panel {
    background: var(--fl-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    position: relative;
}

.fl-auth-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.22), transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(37, 40, 45, 0.08), transparent 40%);
    pointer-events: none;
}

.fl-auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    background: var(--fl-white);
    border-radius: 18px;
    box-shadow: var(--fl-shadow);
    padding: 36px 34px 28px;
    animation: flAuthIn 0.55s ease;
}

.fl-auth-card.is-wide {
    max-width: 640px;
}

@keyframes flAuthIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.fl-auth-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--fl-border);
}

.fl-auth-brand img {
    max-height: 42px;
    width: auto;
    display: block;
}

.fl-auth-eyebrow {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fl-primary-dark);
}

.fl-auth-card-head h1 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--fl-secondary);
    line-height: 1.25;
}

.fl-auth-help {
    font-size: 13px;
    color: var(--fl-muted);
    text-decoration: none;
    white-space: nowrap;
    margin-top: 4px;
}

.fl-auth-help:hover {
    color: var(--fl-secondary);
}

.fl-auth-subtitle {
    margin: -8px 0 22px;
    color: var(--fl-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.fl-auth-form .fl-field {
    margin-bottom: 16px;
}

.fl-auth-form .fl-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fl-label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--fl-secondary);
}

.fl-input-wrap {
    position: relative;
}

.fl-input-wrap .fl-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8094ae;
    font-size: 1.15rem;
    pointer-events: none;
    width: 1.15rem;
    height: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fl-input-wrap .fl-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8094ae;
    cursor: pointer;
    font-size: 1.15rem;
    z-index: 2;
    width: 1.15rem;
    height: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fl-input-wrap .fl-toggle:hover {
    color: var(--fl-secondary);
}

.fl-input {
    width: 100%;
    height: 50px;
    border: 1.5px solid var(--fl-border);
    border-radius: var(--fl-radius-sm);
    background: #fafafa;
    padding: 0 44px 0 42px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--fl-text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fl-input::placeholder {
    color: #9ca3af;
}

.fl-input:focus {
    border-color: var(--fl-primary);
    background: var(--fl-white);
    box-shadow: 0 0 0 4px rgba(255, 204, 15, 0.22);
}

.fl-btn {
    width: 100%;
    height: 52px;
    margin-top: 8px;
    border: none;
    border-radius: var(--fl-radius-sm);
    background: var(--fl-primary);
    color: var(--fl-secondary);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 10px 24px rgba(255, 204, 15, 0.4);
    font-family: inherit;
}

.fl-btn:hover {
    background: var(--fl-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 204, 15, 0.5);
}

.fl-btn:active {
    transform: translateY(0);
}

.fl-auth-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--fl-muted);
}

.fl-auth-footer a {
    color: var(--fl-secondary);
    font-weight: 700;
    text-decoration: none;
}

.fl-auth-footer a:hover {
    color: var(--fl-primary-dark);
    text-decoration: underline;
}

.fl-auth-copy {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 12px;
    color: rgba(37, 40, 45, 0.7);
    white-space: nowrap;
}

.fl-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 12px;
    padding: 1rem 1.35rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(255, 204, 15, 0.35);
    color: var(--fl-secondary);
    font-weight: 600;
    max-width: 380px;
    animation: flSlideIn 0.3s ease-out;
}

.fl-alert.success { border-left: 4px solid #22c55e; }
.fl-alert.error { border-left: 4px solid #ef4444; }

@keyframes flSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes flSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Responsive */
@media (max-width: 992px) {
    .fl-auth-shell {
        grid-template-columns: 1fr;
    }

    .fl-auth-visual {
        min-height: 260px;
        padding: 28px;
        align-items: flex-end;
    }

    .fl-auth-visual-content h2 {
        font-size: 1.6rem;
    }

    .fl-auth-panel {
        padding: 28px 18px 56px;
    }

    .fl-auth-card,
    .fl-auth-card.is-wide {
        max-width: 560px;
        padding: 28px 22px 22px;
    }
}

@media (max-width: 640px) {
    .fl-auth-visual {
        min-height: 200px;
    }

    .fl-auth-visual-content p {
        display: none;
    }

    .fl-auth-form .fl-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .fl-auth-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .fl-auth-card-head h1 {
        font-size: 1.35rem;
    }
}
