html, body {
    height: 100%;
    margin: 0;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f0f0f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #171637;
}
/* Card is centered in the space above the footer, and the footer is a
   separate full-width bar pinned to the page bottom (via .page-content
   taking up the remaining flex space) — matching userqadmin's
   login-data-wrap/footer split rather than having the footer scroll along
   with the card as one centered block. */
.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    padding: 40px 32px;
    margin: 20px;
}
/* Sits above the card now, not inside it — matching userqadmin's
   admin-logo-wrap, which is a sibling of the card rather than its first
   child. */
.logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}
.logo-wrap svg {
    width: 110px;
    height: auto;
}
h1 {
    text-align: center;
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 28px;
}
.alert {
    background: #fdeceb;
    color: #b3261e;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 20px;
}
.field {
    position: relative;
    margin-bottom: 20px;
}
.field input {
    width: 100%;
    height: 55px;
    border-radius: 10px;
    border: 1px solid #9c9c9c;
    padding: 0 20px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
    background: transparent;
}
.field input:focus {
    outline: none;
    border-color: #171637;
}
.field.has-error input {
    border-color: #b3261e;
}
.field-error {
    color: #b3261e;
    font-size: 12px;
    margin: -12px 0 12px;
}
/* Floating label, animated on focus/content — matching userqadmin's
   transition (rests inside the input like a placeholder, floats up onto
   the border with a white cutout on focus or once there's a value).
   `input:not(:placeholder-shown)` is what makes it stay floated after
   blur when the field has content — needs the inputs' `placeholder=" "`
   (a single space) to work, since a non-empty placeholder is what makes
   :placeholder-shown able to go false as soon as real content exists. */
.field label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background: transparent;
    padding: 0;
    font-size: 16px;
    font-weight: 400;
    color: #9c9c9c;
    transition: 0.15s ease-out;
    pointer-events: none;
}
.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label {
    top: 0;
    left: 12px;
    background: #fff;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 500;
    color: #171637;
}
.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #676767;
    display: flex;
}
.toggle-password .icon-eye-off {
    display: none;
}
.toggle-password.is-visible .icon-eye {
    display: none;
}
.toggle-password.is-visible .icon-eye-off {
    display: flex;
}
.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 24px;
    font-size: 14px;
}
.remember-row input {
    width: 18px;
    height: 18px;
    accent-color: #ff66ad;
}
button[type="submit"] {
    width: 100%;
    height: 58px;
    border-radius: 40px;
    border: 0;
    background: #000;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}
button[type="submit"]:hover {
    background: #555;
}
/* Matches userqadmin's footer > .container > .footer-inner-data: the bar
   itself spans the full page width (background), but its content
   (copyright left-aligned, Terms/Privacy right-aligned via flex
   space-between) is constrained to a centered max-width block rather than
   stretched edge to edge — stacks and centers on mobile, same breakpoint
   userqadmin uses. */
.footer {
    flex-shrink: 0;
    background: #f5f5f5;
    padding: 14px 40px;
    font-size: 12px;
    color: #676767;
}
.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-links a {
    color: #676767;
    text-decoration: none;
}
.footer-links a:last-child {
    margin-left: 24px;
}
@media screen and (max-width: 767px) {
    .footer-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    .footer {
        padding: 12px 20px;
    }
}
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: default;
}
