/* ==========================================================================
   LEADUP - Login screen redesign
   Scoped under .leadup-login so global styles remain untouched.
   ========================================================================== */

.leadup-login {
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: #0f172a url('../plugins/images/login-register.jpg') center center / cover no-repeat;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    overflow: auto;
}

.leadup-login::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(2px);
}

.leadup-login__card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 410px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    padding: 40px 38px 34px;
    box-sizing: border-box;
}

.leadup-login__logo {
    display: block;
    height: 40px;
    width: auto;
    margin: 0 auto 18px;
}

.leadup-login__title {
    margin: 0 0 6px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
}

.leadup-login__subtitle {
    margin: 0 0 26px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

/* ----- Fields ----- */
.leadup-login__group {
    margin-bottom: 18px;
}

.leadup-login__label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.leadup-login__field {
    position: relative;
}

.leadup-login__field .leadup-login__icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 15px;
    pointer-events: none;
}

.leadup-login__input {
    width: 100%;
    height: 48px;
    padding: 0 44px;
    font-size: 14px;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.leadup-login__input::placeholder {
    color: #9ca3af;
}

.leadup-login__input:focus {
    outline: none;
    border-color: #63b62d;
    box-shadow: 0 0 0 3px rgba(99, 182, 45, 0.15);
}

.leadup-login__input.is-invalid {
    border-color: #ef4444;
}

.leadup-login__toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
}

.leadup-login__toggle:hover {
    color: #6b7280;
}

.leadup-login__error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #ef4444;
}

/* ----- Options row ----- */
.leadup-login__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 22px;
    font-size: 13px;
}

.leadup-login__remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

.leadup-login__remember input {
    width: 15px;
    height: 15px;
    accent-color: #63b62d;
    cursor: pointer;
}

.leadup-login__forgot {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

.leadup-login__forgot:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ----- Submit ----- */
.leadup-login__submit {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg, #6bc22f 0%, #52a417 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter .2s ease, box-shadow .2s ease, opacity .2s ease;
    box-shadow: 0 8px 18px rgba(82, 164, 23, 0.35);
}

.leadup-login__submit:hover {
    filter: brightness(1.05);
}

.leadup-login__submit:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.leadup-login__submit .fa {
    font-size: 13px;
}

/* ----- Responsive ----- */
@media (max-width: 480px) {
    .leadup-login {
        padding: 16px;
        align-items: flex-start;
    }

    .leadup-login__card {
        padding: 30px 22px 26px;
        margin-top: 24px;
    }

    .leadup-login__title {
        font-size: 22px;
    }
}
