/* ============================================================
   enix-login.css  —  Full of Dreams / Stage Pass login
   ============================================================ */

/* Wrapper -------------------------------------------------- */
.fd-login {
    display: flex;
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
    background: #0E1836;
}

/* ---- Left media panel ------------------------------------ */
.fd-vis {
    flex: 1.1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.fd-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fd-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(8,30,60,.52)  0%,
        rgba(8,30,60,.08) 28%,
        rgba(8,30,60,.10) 52%,
        rgba(8,30,60,.80) 100%
    );
}

/* Brand mark top-left */
.fd-brand-top {
    position: absolute;
    top: 48px;
    left: 60px;
    z-index: 1;
}

.fd-brand-logo {
    max-height: 52px;
    max-width: 200px;
    object-fit: contain;
}

/* Bottom tagline */
.fd-brand-bottom {
    position: relative;
    z-index: 1;
    padding: 0 60px 60px;
    color: #fff;
}

.fd-eyebrow-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.fd-eyebrow-line {
    width: 30px;
    height: 2px;
    background: rgba(255,255,255,.85);
    border-radius: 2px;
    flex-shrink: 0;
}

.fd-eyebrow-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.6px;
    color: rgba(255,255,255,.9);
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
}

.fd-tagline {
    margin: 0;
    font-size: 16px;
    color: rgba(255,255,255,.88);
    max-width: 480px;
    line-height: 1.5;
    font-family: 'Outfit', sans-serif;
}

/* ---- Right form panel ------------------------------------ */
.fd-form-panel {
    flex: .9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 48px 48px;
    min-width: 0;
    position: relative;
    background: #fff;
}

.fd-form-inner {
    width: 400px;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: auto;
}

/* Eyebrow / heading */
.fd-welcome {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 2.6px;
    color: #1763AC;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.fd-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #0E3A6B;
    margin: 0 0 6px;
    line-height: 1.2;
}

.fd-subtext {
    margin: 0 0 28px;
    color: #7B8A98;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
}

/* Form fields */
.fd-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fd-field {
    position: relative;
}

.fd-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #3D4F60;
    margin-bottom: 6px;
    font-family: 'Outfit', sans-serif;
}

.fd-field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8398AC;
    pointer-events: none;
    display: flex;
}

.fd-input {
    width: 100%;
    height: 56px;
    border: 1.5px solid #D7E0EA;
    border-radius: 14px;
    background: #F7FAFD;
    padding: 0 16px 0 46px;
    font-family: 'Outfit', sans-serif;
    font-size: 15.5px;
    color: #16273A;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    box-sizing: border-box;
}

.fd-input:focus {
    border-color: #1763AC;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(23,99,172,.13);
}

.fd-input::placeholder {
    color: #A8B8C8;
}

.fd-input-pw {
    padding-right: 50px;
}

/* No icon variant */
.fd-input-noicon {
    padding-left: 16px;
}

/* Eye toggle */
.fd-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #8398AC;
    display: flex;
    transition: color .2s;
}

.fd-eye:hover {
    color: #1763AC;
}

/* Remember + forgot row */
.fd-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
}

.fd-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #5A6B7B;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
}

.fd-remember input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    accent-color: #1763AC;
    cursor: pointer;
    flex-shrink: 0;
}

.fd-forgot {
    color: #1763AC;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.fd-forgot:hover {
    text-decoration: underline;
}

/* Primary button */
.fd-btn {
    margin-top: 8px;
    height: 56px;
    width: 100%;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #1763AC, #2E86C9);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 14px 26px -10px rgba(23,99,172,.7);
    transition: transform .15s, box-shadow .15s;
}

.fd-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 20px 32px -10px rgba(23,99,172,.8);
}

.fd-btn:active:not(:disabled) {
    transform: translateY(0);
}

.fd-btn:disabled {
    cursor: default;
    opacity: .7;
}

/* Spinner inside button */
.fd-sp {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fd-spin .7s linear infinite;
}

@keyframes fd-spin {
    to { transform: rotate(360deg); }
}

/* Error box */
.fd-err {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(217,72,63,.08);
    color: #C13A31;
    border: 1px solid rgba(217,72,63,.25);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13.5px;
    font-family: 'Outfit', sans-serif;
    animation: fdErr .25s ease;
}

@keyframes fdErr {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Success box */
.fd-ok {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(22,163,74,.08);
    color: #15803D;
    border: 1px solid rgba(22,163,74,.25);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13.5px;
    font-family: 'Outfit', sans-serif;
}

/* Footer link */
.fd-footer-note {
    margin: 26px 0 0;
    text-align: center;
    font-size: 14px;
    color: #9AAAB8;
    font-family: 'Outfit', sans-serif;
}

.fd-footer-note a {
    color: #1763AC;
    text-decoration: none;
    font-weight: 600;
}

/* Back button */
.fd-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: #7B8A98;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    padding: 0;
    margin-top: 16px;
}

.fd-back:hover {
    color: #1763AC;
}

/* 2FA code input */
.fd-code-input {
    text-align: center;
    letter-spacing: 10px;
    font-size: 22px;
    font-weight: 700;
}

/* ---- Logo strip (top of right panel, always visible) ----- */
.fd-mobile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 36px 0 28px;
    background: #fff;
    flex-shrink: 0;
}

.fd-mobile-logo {
    max-height: 133px;
    max-width: 399px;
    object-fit: contain;
}

/* ---- Responsive ------------------------------------------ */
@media (max-width: 860px) {
    .fd-login {
        flex-direction: column;
    }

    /* Hide the left photo panel */
    .fd-vis {
        display: none !important;
    }

    /* Form panel: full width, scroll friendly */
    .fd-form-panel {
        flex: 1;
        padding: 0 24px 40px;
        align-items: stretch;
        justify-content: flex-start;
    }

    .fd-mobile-header {
        padding: 28px 24px 20px;
    }

    /* Form inner: full width */
    .fd-form-inner {
        width: 100%;
        max-width: 100%;
    }

    /* Slightly smaller heading on narrow screens */
    .fd-heading {
        font-size: 26px;
    }

    /* Reduce input height a bit */
    .fd-input {
        height: 50px;
    }

    .fd-btn {
        height: 50px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .fd-form-panel {
        padding-left: 16px;
        padding-right: 16px;
    }

    .fd-mobile-header {
        padding-left: 16px;
        padding-right: 16px;
    }
}
