﻿/* =========================================================
   Login
   Shared shell: forgot-password.css
   ========================================================= */

#login_page .fp-form-container {
    max-width: 470px;
}

/* =========================================================
   Field heading / Forgot password
   ========================================================= */

.login-field-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.fp-field .login-field-heading label {
    margin-bottom: 0;
}

.login-forgot-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    border-radius: 4px;
    color: #0b7583;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.login-forgot-link:hover {
    text-decoration: underline;
}

.login-forgot-link:focus-visible {
    outline: 2px solid rgba(14, 131, 146, .42);
    outline-offset: 3px;
}

/* =========================================================
   Password visibility
   ========================================================= */

.login-password-input {
    padding-right: 56px !important;
}

/* Hide any browser-native password reveal control. */
.login-password-input::-ms-reveal,
.login-password-input::-ms-clear {
    display: none;
}

.login-password-toggle {
    position: absolute;
    z-index: 4;
    top: 50%;
    right: 1px;

    display: inline-flex;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #667085;

    cursor: pointer;
    transition:
        background-color .15s ease,
        color .15s ease,
        box-shadow .15s ease;
}

.login-password-toggle:hover {
    background: #f2f4f7;
    color: #344054;
}

.login-password-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 131, 146, .14);
    color: #0b7583;
}

.login-password-toggle:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.login-password-toggle i {
    font-size: 17px;
    pointer-events: none;
}

/* =========================================================
   Remember me
   ========================================================= */

.login-options {
    padding: 1px 0 2px;
}

.login-remember-label {
    display: inline-flex;
    width: fit-content;
    align-items: flex-start;
    gap: 10px;

    cursor: pointer;
    user-select: none;
}

.login-remember-label .kt-checkbox {
    flex: 0 0 auto;
    margin-top: 2px;
}

.login-remember-label > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.login-remember-label strong {
    color: #344054;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.login-remember-label small {
    color: #98a2b3;
    font-size: 10px;
    line-height: 1.45;
}

/* =========================================================
   Feedback / loading
   ========================================================= */

.login-alert-messages {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 3px;

    color: #7a271a;
    font-size: 12px;
    line-height: 1.5;
}

.login-submit-button:disabled {
    cursor: not-allowed;
    opacity: .72;
}

.login-submit-button .kt-spinner {
    flex: 0 0 auto;
}

/* =========================================================
   JustValidate states
   ========================================================= */

#loginForm .just-validate-error-label {
    line-height: 1.5;
}

#loginForm .just-validate-error-field {
    border-color: #d92d20 !important;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, .08) !important;
}

/* =========================================================
   Dark mode
   ========================================================= */

.dark .login-forgot-link {
    color: #5ec8d4;
}

.dark .login-password-toggle {
    color: #98a2b3;
}

.dark .login-password-toggle:hover {
    background: #202b38;
    color: #e4e7ec;
}

.dark .login-remember-label strong {
    color: #d0d5dd;
}

.dark .login-remember-label small {
    color: #98a2b3;
}

.dark .login-alert-messages {
    color: #fda29b;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {
    .login-forgot-link {
        min-height: 44px;
    }
}

@media (max-width: 540px) {
    .login-field-heading {
        gap: 10px;
    }

    .login-forgot-link {
        font-size: 11px;
    }

    .login-remember-label {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .login-field-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

/* =========================================================
   System concept credit
   ========================================================= */

.login-concept-credit {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-concept-mark {
    width: 22px;
    height: 1px;
    flex: 0 0 22px;
    border-radius: 999px;
    background: currentColor;
    opacity: .45;
}

.login-concept-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
}

.login-concept-text small {
    color: inherit;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .02em;
    opacity: .72;
}

.login-concept-text strong {
    color: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .01em;
}

@media (max-width: 1024px) {
    .login-concept-credit {
        justify-content: center;
    }
}

