/* === USER AUTH / MY ACCOUNT PAGE STYLES === */

/* Auth forms container: keep consistent sizing and centering */
#authFormsContainer {
    max-width: 450px;
    margin: 0 auto;
}

/* Input with left icon */
.input-icon {
    position: relative;
}

.input-icon__icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-tertiary);
    pointer-events: none;
}

/* Override global input[type="..."] padding rules (higher specificity). */
.input-icon input.input-icon__input {
    padding-left: 30px;
}

/* Honeypot anti-bot field */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}

/* Button row */
.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
    /* margin-top: var(--spacing-sm);*/
    margin-bottom: var(--spacing-lg);
}

/* Terms acceptance checkbox (Sign Up) */
.terms-consent {
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.terms-consent__label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--color-text-primary);
    font-size: var(--font-size-sm);
    line-height: 1.35;
    cursor: pointer;
    user-select: none;
}

.terms-consent__label input[type="checkbox"] {
    margin-top: 3px; /* align with first line of text */
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.terms-consent__label a {
    text-decoration: none;
}

.terms-consent__label a:hover {
    text-decoration: underline;
}

.auth-actions .button {
    margin: 0;
}

/* Verification warning block spacing */
.verification-warning p {
    margin: 0;
}

.verification-warning .spacer-top {
    margin-top: 20px;
}

.verification-warning .message {
    margin-top: 10px;
}

/* Section header row with action button */
.section-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: 10px;
}

.section-row h3 {
    margin: 0;
}

/* Simple vertical spacing blocks */
.block {
    margin-bottom: 20px; 
}

.block-lg {
    margin-bottom: 30px;
}

/* Small action buttons used inside tables */
.button-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    font-family: var(--font-family-base);
    /* font-size: var(--font-size-xs);
    font-weight: var(--font-weight-normal); */
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-dark);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    cursor: pointer;
}

.button-small:hover {
    background-color: var(--color-bg-tertiary);
}

.button-small:disabled,
.button-small[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Status text helpers */
.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: var(--font-weight-semibold);
}

.status--success {
    color: var(--color-success);
}

.status--warning {
    color: var(--color-warning-text);
}

.status--error {
    color: var(--color-error);
}

/* Small muted text */
.text-muted {
    color: var(--color-text-muted);
}

.text-xs {
    font-size: var(--font-size-xs);
}

/* Loading overlay (moved from inline <style>) */
#signupLoadingOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

#signupLoadingOverlay.show {
    display: flex;
}

.loading-content {
    text-align: center;
    color: var(--color-text-white);
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.loading-spinner {
    font-size: 48px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-message {
    font-size: 18px;
    font-weight: var(--font-weight-medium);
}

