/* ============================================================
   DAPAChecker.org — Authentication pages
   Log In / Sign Up / Reset password / Update password /
   Check your inbox / Verify e-mail / Password updated

   Built from Figma "Log In - Sign Up" (node 9844-93881).
   Namespaced under `.dpc-auth` so the global stylesheet
   (.btn, .form-control, p{font-size:18px!important} …) cannot
   bleed into the card.
   ============================================================ */

.dpc-auth {
    /* Figma colour tokens */
    --dpc-auth-heading: #0a0909;
    --dpc-auth-text: #222222;
    --dpc-auth-muted: #757575;
    --dpc-auth-placeholder: #acacac;
    --dpc-auth-stroke: #dadada;
    --dpc-auth-surface: #f5f5f5;
    --dpc-auth-white: #ffffff;
    --dpc-auth-primary: #d4403a;
    --dpc-auth-primary-hover: #b93832;
    --dpc-auth-error: #d4403a;
    --dpc-auth-success: #1a8f4c;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 40px 0;
    background-color: var(--dpc-auth-white);
    font-family: "Roboto Slab", serif;
}

.dpc-auth *,
.dpc-auth *::before,
.dpc-auth *::after {
    box-sizing: border-box;
}

/* "BG - TOP": 1920x900 wash anchored to the top of the viewport. */
.dpc-auth::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 900px;
    max-height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(78% 62% at 34% 6%, rgba(212, 64, 58, 0.09) 0%, rgba(212, 64, 58, 0) 68%),
        radial-gradient(64% 54% at 72% 2%, rgba(206, 23, 123, 0.05) 0%, rgba(206, 23, 123, 0) 70%),
        linear-gradient(180deg, rgba(212, 64, 58, 0.04) 0%, rgba(212, 64, 58, 0) 62%);
}

/* ---------- Card ---------- */
.dpc-auth__card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background-color: var(--dpc-auth-white);
    border: 1px solid var(--dpc-auth-stroke);
    border-radius: 16px;
    box-shadow: 0px 4px 20px 6px rgba(246, 201, 199, 0.16);
    overflow: hidden;
}

.dpc-auth__body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 40px;
}

.dpc-auth__foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 16px 24px;
    background-color: var(--dpc-auth-surface);
    border-top: 1px solid var(--dpc-auth-stroke);
}

/* ---------- Head ---------- */
.dpc-auth__head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.dpc-auth__title {
    margin: 0;
    font-family: "Roboto Slab", serif;
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
    color: var(--dpc-auth-heading);
    text-align: center;
}

.dpc-auth__subtitle {
    margin: 0;
    font-family: "Roboto Slab", serif;
    font-size: 16px !important;
    line-height: 24px;
    font-weight: 400;
    color: var(--dpc-auth-text);
    text-align: center;
}

/* 50x50 outlined circle that carries the status icon */
.dpc-auth__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    background-color: var(--dpc-auth-white);
    border: 1px solid var(--dpc-auth-stroke);
    border-radius: 50%;
}

.dpc-auth__badge svg,
.dpc-auth__badge img {
    display: block;
    width: 24px;
    height: 24px;
}

/* ---------- Buttons ---------- */
.dpc-auth__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    padding: 8px 24px;
    border: 0;
    border-radius: 999px;
    font-family: "Roboto Slab", serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.dpc-auth__btn--primary,
.dpc-auth__btn--primary:hover,
.dpc-auth__btn--primary:focus {
    color: var(--dpc-auth-white);
}

.dpc-auth__btn--primary {
    background-color: var(--dpc-auth-primary);
}

.dpc-auth__btn--primary:hover {
    background-color: var(--dpc-auth-primary-hover);
}

.dpc-auth__btn--google,
.dpc-auth__btn--google:hover,
.dpc-auth__btn--google:focus {
    color: var(--dpc-auth-heading);
}

.dpc-auth__btn--google {
    background-color: var(--dpc-auth-surface);
}

.dpc-auth__btn--google:hover {
    background-color: #ececec;
}

.dpc-auth__btn[disabled],
.dpc-auth__btn.is-loading {
    opacity: 0.65;
    cursor: not-allowed;
}

.dpc-auth__btn img,
.dpc-auth__btn svg {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

/* ---------- Divider (16px tall band with a 1px rule) ---------- */
.dpc-auth__divider {
    display: flex;
    align-items: center;
    width: 100%;
    height: 16px;
}

.dpc-auth__divider span {
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--dpc-auth-stroke);
}

/* ---------- Fields ---------- */
.dpc-auth__fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.dpc-auth__field {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.dpc-auth__label {
    display: block;
    margin: 0;
    padding: 0 0 8px 8px;
    font-family: "Roboto Slab", serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: var(--dpc-auth-text);
}

.dpc-auth__input {
    display: flex;
    align-items: center;
    gap: 12px;
    /* 40px tall overall — Figma draws its 1px stroke inside the 10px padding. */
    min-height: 40px;
    padding: 9px 16px;
    background-color: var(--dpc-auth-white);
    border: 1px solid var(--dpc-auth-stroke);
    border-radius: 999px;
    cursor: text;
    transition: border-color 0.15s ease;
}

.dpc-auth__input:focus-within {
    border-color: var(--dpc-auth-heading);
}

.dpc-auth__field.has-error .dpc-auth__input {
    border-color: var(--dpc-auth-error);
}

.dpc-auth__control {
    flex: 1 1 auto;
    min-width: 0;
    height: 20px;
    margin: 0;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0;
    font-family: "Roboto Slab", serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: var(--dpc-auth-heading);
}

.dpc-auth__control::placeholder {
    color: var(--dpc-auth-placeholder);
    opacity: 1;
}

.dpc-auth__eye {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.dpc-auth__eye img {
    display: block;
    width: 20px;
    height: 20px;
}

/* ---------- Inline messages ---------- */
.dpc-auth__msg {
    width: 100%;
    margin: -12px 0 0;
    font-family: "Roboto Slab", serif;
    font-size: 14px !important;
    line-height: 20px;
    text-align: center;
}

.dpc-auth__msg--error {
    color: var(--dpc-auth-error);
}

.dpc-auth__msg--success {
    color: var(--dpc-auth-success);
}

/* Grey helper panel (verify e-mail) */
.dpc-auth__note {
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    background-color: var(--dpc-auth-surface);
    border-radius: 8px;
    font-family: "Roboto Slab", serif;
    font-size: 14px !important;
    line-height: 20px;
    color: var(--dpc-auth-text);
    text-align: center;
}

.dpc-auth__note a {
    color: var(--dpc-auth-primary);
    text-decoration: underline;
}

/* ---------- Meta row: "Forgot password?  ·  Reset" ---------- */
.dpc-auth__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-family: "Roboto Slab", serif;
    font-size: 16px;
    line-height: 24px;
    color: var(--dpc-auth-muted);
}

.dpc-auth__meta span {
    color: var(--dpc-auth-muted);
}

.dpc-auth__link,
.dpc-auth__link:focus {
    font-family: "Roboto Slab", serif;
    font-size: 16px;
    line-height: 24px;
    color: var(--dpc-auth-primary);
    text-decoration: none;
}

.dpc-auth__link:hover {
    color: var(--dpc-auth-primary);
    text-decoration: underline;
}

.dpc-auth__link--dark,
.dpc-auth__link--dark:focus,
.dpc-auth__link--dark:hover {
    color: var(--dpc-auth-heading);
}

/* ---------- Misc ---------- */
.dpc-auth .d-none {
    display: none !important;
}

.dpc-auth__captcha:not(:empty) {
    position: fixed;
    top: calc(50% + 90px);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
}

.dpc-auth .loader {
    border-radius: 16px;
}

/* ---------- Responsive (Figma: 1920 / 768 / 375) ---------- */
@media (max-width: 991px) {
    .dpc-auth {
        padding: 24px 32px;
    }

    .dpc-auth__body {
        padding: 32px;
    }
}

@media (max-width: 575px) {
    .dpc-auth {
        padding: 24px 16px;
    }

    .dpc-auth__body {
        padding: 24px;
    }
}
