/* ============================================================
   DA-Checker.org — Log In page
   Matches Figma node 10035:19058
   ============================================================ */

.login-page-wrapper {
    --lp-primary: #323dd6;
    --lp-primary-hover: #2a34b8;
    --lp-heading: #1e2938;
    --lp-paragraph: #364153;
    --lp-muted: #697282;
    --lp-placeholder: #98a1ae;
    --lp-stroke: #e5e7eb;
    --lp-bg: #f7f8fa;
    --lp-white: #ffffff;
    --lp-error: #dc2626;

    display: flex;
    flex-direction: column;
    min-height: 80vh;
    background-color: var(--lp-bg);
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.login-page-wrapper *,
.login-page-wrapper *::before,
.login-page-wrapper *::after {
    box-sizing: border-box;
}

.login-page-main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
}

.login-page-content {
    width: 100%;
    max-width: 410px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* ---------- Card ---------- */
.login-page-card {
    position: relative;
    width: 100%;
    background-color: var(--lp-white);
    border: 1px solid var(--lp-stroke);
    border-radius: 12px;
    box-shadow: 0px 1px 2px 0px rgba(10, 0, 31, 0.05);
    overflow: hidden;
}

.login-page-card__head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border-bottom: 1px solid var(--lp-stroke);
}

.login-page-title {
    margin: 0;
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
    color: var(--lp-heading);
}

.login-page-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
    color: var(--lp-muted);
}

.login-page-link {
    font-weight: 500;
    color: var(--lp-paragraph);
    text-decoration: underline;
}

.login-page-link:hover {
    color: var(--lp-primary);
}

.login-page-card__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
}

/* ---------- Fields ---------- */
.login-page-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-page-label {
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    color: var(--lp-heading);
}

.login-page-input {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 10px 12px;
    background-color: var(--lp-white);
    border: 1px solid var(--lp-stroke);
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    cursor: text;
}

.login-page-input:focus-within {
    border-color: var(--lp-primary);
    /* box-shadow: 0 0 0 3px rgba(50, 61, 214, 0.12); */
}

/* highlight the field when its message is active */
.login-page-field.has-error .login-page-input {
    border-color: var(--lp-error);
}

.login-page-input__control {
    flex: 1 0 0;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    line-height: 20px;
    color: var(--lp-heading);
    font-family: inherit;
    padding: 0 !important;

    &:hover {
        box-shadow: none !important;
    }
}

.login-page-input__control::placeholder {
    color: var(--lp-placeholder);
}

.login-page-eye {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.login-page-eye img {
    width: 20px;
    height: 20px;
    display: block;
}

/* ---------- Error (below password, above submit) ---------- */
.login-page-error {
    margin-top: -8px;
    font-size: 13px !important;
    line-height: 18px;
    color: var(--lp-error);
    text-transform: capitalize;
}

.login-page-error.d-none {
    display: none;
}

/* ---------- Actions ---------- */
.login-page-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.login-page-btn--primary {
    background-color: var(--lp-primary);
    color: var(--lp-white);
    box-shadow: 0px 1px 1.5px rgba(10, 0, 31, 0.1), 0px 1px 1px rgba(10, 0, 31, 0.06);
}

.login-page-btn--primary:hover {
    background-color: var(--lp-primary-hover);
}

.login-page-btn--primary:disabled,
.login-page-btn.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-page-btn--google {
    background-color: var(--lp-white);
    color: var(--lp-paragraph);
    border-color: var(--lp-stroke);
    box-shadow: 0px 1px 1px rgba(10, 0, 31, 0.05);
}

.login-page-btn--google:hover {
    background-color: #f9fafb;
}

.login-page-btn--google img {
    width: 24px;
    height: 24px;
}

/* ---------- OR divider ---------- */
.login-page-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-page-divider__line {
    flex: 1 0 0;
    height: 1px;
    background-color: var(--lp-stroke);
}

.login-page-divider__text {
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: #7a7b8e;
}

/* ---------- Terms + footer ---------- */
.login-page-terms {
    margin: 0;
    text-align: center;
    font-size: 14px !important;
    line-height: 20px;
    color: var(--lp-muted);
}

.login-page-terms a {
    font-weight: 500;
    color: var(--lp-muted);
    text-decoration: underline;
}

.login-page-terms a:hover {
    color: var(--lp-primary);
}

.login-page-foot {
    flex-shrink: 0;
    padding: 24px 16px;
    text-align: center;
}

.login-page-foot p {
    margin: 0;
    font-size: 14px !important;
    line-height: 20px;
    color: var(--lp-muted);
}

/* ---------- Captcha container ---------- */
.login-page-captcha:not(:empty) {
    position: fixed;
    top: calc(50% + 90px);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
}

.loader img {
    filter: brightness(0) saturate(100%) invert(19%) sepia(93%) saturate(6403%) hue-rotate(242deg) brightness(89%) contrast(88%);
}

/* ---------- Auth pages: header description, meta row, secondary button ---------- */
.login-page-desc {
    margin: 0;
    font-size: 14px !important;
    line-height: 20px;
    color: var(--lp-muted);
}

.login-page-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    line-height: 20px;
    color: var(--lp-muted);
}

.login-page-btn--secondary {
    background-color: var(--lp-white);
    color: var(--lp-paragraph);
    border-color: var(--lp-stroke);
    box-shadow: 0px 1px 1px rgba(10, 0, 31, 0.05);
}

.login-page-btn--secondary:hover {
    background-color: #f9fafb;
}

/* success message (forgot password) */
.login-page-success {
    margin-top: -8px;
    font-size: 13px !important;
    line-height: 18px;
    color: #16a34a;
    text-transform: capitalize;
}

.login-page-success.d-none {
    display: none;
}

/* verify-email helper note */
.login-page-note {
    margin: 0;
    font-size: 13px;
    line-height: 18px;
    color: var(--lp-muted);
    text-align: center;
}

/* toggle whole cards (e.g. reset → success state) */
.login-page-card.d-none {
    display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .login-page-main {
        padding: 24px 16px;
    }

    .login-page-card__head,
    .login-page-card__body {
        padding: 20px;
    }
}