/* auth-forms.css */

.auth_form {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--auth-space-24px) !important;
    max-width: 480px !important;
    width: 100% !important;
    background-color: var(--auth-white-color) !important;
    padding: clamp(1.25rem, calc(0.971rem + 1.143vw), 2rem) clamp(1rem, calc(0.814rem + 0.762vw), 1.5rem) !important;
    border: 1px solid var(--auth-color-border) !important;
    border-radius: var(--auth-space-12px) !important;
    font-size: var(--auth-x-pry-text) !important;
    font-family: var(--auth-font-sec) !important;
    color: var(--auth-secondary-color) !important;
    box-shadow: var(--auth-shadow-soft) !important;
}

.auth_form_header {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--auth-space-4px) !important;
}

.auth_form_header span {
    font-size: var(--auth-x-sec-text) !important;
    color: var(--auth-secondary-color) !important;
    font-family: var(--auth-font-sec) !important;
    display: block !important;
}

.auth_form_body {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--auth-space-12px) !important;
}

.auth_form_body > span {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    width: 100% !important;
    gap: 2px !important;
    font-family: var(--auth-font-sec) !important;
    color: var(--auth-secondary-color) !important;
}

.auth_form_body span a {
    font-weight: 500 !important;
    color: var(--auth-secondary-color) !important;
    transition: color 0.3s ease !important;
    text-decoration: underline !important;
}

.auth_form_body span a:hover {
    color: var(--auth-primary-color) !important;
}

.auth_form_body .two_column_input {
    display: flex !important;
    flex-direction: row !important;
    gap: var(--auth-space-12px) !important;
}

/* ── Inputs ── */
.auth_input {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: var(--auth-space-14px) var(--auth-space-12px) !important;
    font-size: var(--auth-x-pry-text) !important;
    font-family: var(--auth-font-sec) !important;
    line-height: 1.2 !important;
    color: var(--auth-secondary-color) !important;
    border: 0.5px solid var(--auth-color-border) !important;
    border-radius: var(--auth-space-8px) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.3s ease !important;
    gap: var(--auth-space-12px) !important;
    background: var(--auth-white-color) !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.auth_hidden_input {
    padding: 0 !important;
    margin: 0 !important;
    font-size: var(--auth-x-pry-text) !important;
    font-family: var(--auth-font-sec) !important;
    line-height: 1.2 !important;
    color: var(--auth-secondary-color) !important;
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.auth_input::placeholder,
.auth_hidden_input::placeholder {
    color: var(--auth-secondary-color) !important;
    opacity: 0.6 !important;
}

.auth_input:hover,
.auth_input:focus-within {
    border-color: var(--auth-primary-color) !important;
    outline: none !important;
}

/* ── Submit button ── */
.auth_submit_buttton {
    display: block !important;
    padding: var(--auth-space-14px) var(--auth-space-12px) !important;
    font-size: var(--auth-x-pry-text) !important;
    font-family: var(--auth-font-sec) !important;
    font-weight: 500 !important;
    background-color: var(--auth-primary-color) !important;
    line-height: 1.2 !important;
    color: var(--auth-white-color) !important;
    border: none !important;
    border-radius: var(--auth-space-8px) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    transition: opacity 0.3s ease !important;
    text-align: center !important;
    text-decoration: none !important;
}

.auth_submit_buttton:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.auth_submit_buttton::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: rgba(255, 255, 255, 0.15) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.auth_submit_buttton:not(:disabled):hover::after {
    opacity: 1 !important;
}

/* ── Password toggle ── */
.pwd_toggle {
    background: transparent !important;
    color: var(--auth-secondary-color) !important;
    border: none !important;
    cursor: pointer !important;
    font-size: var(--auth-x-sec-text) !important;
    font-family: var(--auth-font-sec) !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

/* ── Footer / alerts ── */
.auth_form_footer {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--auth-space-4px) !important;
}

.auth_form_error {
    color: var(--auth-color-error) !important;
    font-weight: 500 !important;
    font-size: var(--auth-x-sec-text) !important;
    font-family: var(--auth-font-sec) !important;
    display: block !important;
    text-align: center !important;
    min-height: 1em !important;
}

/* ── Resend ── */
#resend_wrap {
    font-family: var(--auth-font-sec) !important;
    color: var(--auth-secondary-color) !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

#resend_btn {
    background: transparent !important;
    border: none !important;
    color: var(--auth-primary-color) !important;
    cursor: pointer !important;
    font-family: var(--auth-font-sec) !important;
    font-weight: 500;
    padding: 0 !important;
    text-decoration: underline !important;
}

#resend_btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    text-decoration: none !important;
}

#resend_countdown {
    color: var(--auth-secondary-color) !important;
    font-weight: 500 !important;
}
