/* Client auth — Ant Design 2026 (login / OTP) */

:root {
    --club-client-primary: #1677ff;
    --club-client-primary-hover: #4096ff;
    --club-client-border: #f0f0f0;
    --club-client-border-strong: #d9d9d9;
    --club-client-text: rgba(0, 0, 0, 0.88);
    --club-client-text-secondary: rgba(0, 0, 0, 0.45);
    --club-client-danger: #ff4d4f;
    --club-client-radius: 12px;
}

@font-face {
    font-family: 'IRANSansXFaNum';
    src: url('../../fonts/IRANSansXFaNum-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSansXFaNum';
    src: url('../../fonts/IRANSansXFaNum-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSansXFaNum';
    src: url('../../fonts/IRANSansXFaNum-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.club-client-auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'IRANSansXFaNum', Tahoma, 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

.club-client-auth-body,
.club-client-auth-body * {
    box-sizing: border-box;
    font-family: 'IRANSansXFaNum', Tahoma, 'Segoe UI', sans-serif;
}

/* bg-login-img from club.css — background stays on body */
.club-client-auth-body.bg-login-img {
    position: relative;
    background-color: #dadada;
    background-image: none;
}

.club-client-auth-body.bg-login-img::before {
    content: '';
    position: fixed;
    inset: -4%;
    z-index: 0;
    background-image: url('../../img/main/loginbg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: clubClientAuthBgKen 24s ease-in-out infinite alternate;
    will-change: transform;
}

.club-client-auth-body.bg-login-img::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.06) 0%, rgba(15, 23, 42, 0.14) 100%);
}

@keyframes clubClientAuthBgKen {
    from {
        transform: scale(1) translate(0, 0);
    }
    to {
        transform: scale(1.06) translate(-0.8%, -0.5%);
    }
}

.club-client-auth-stage {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.club-client-auth-card {
    width: 100%;
    max-width: 440px;
    padding: 32px 28px 28px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: clubClientAuthIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.club-client-auth-stage.is-leaving .club-client-auth-card {
    animation: clubClientAuthOut 0.22s ease forwards;
}

.club-client-auth-stage.is-entering .club-client-auth-card {
    animation: clubClientAuthIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes clubClientAuthIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes clubClientAuthOut {
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
}

.club-client-auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}

.club-client-auth-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4096ff 0%, #1677ff 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(22, 119, 255, 0.28);
}

.club-client-auth-brand-icon .club-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.club-client-auth-brand-text {
    font-size: 17px;
    font-weight: 600;
    color: var(--club-client-text);
}

.club-client-auth-head {
    text-align: center;
    margin-bottom: 24px;
}

.club-client-auth-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    line-height: 30px;
    color: var(--club-client-text);
}

.club-client-auth-desc {
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    color: var(--club-client-text-secondary);
}

.club-client-auth-phone-mask {
    direction: ltr;
    unicode-bidi: isolate;
}

.club-client-auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.club-client-auth-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--club-client-text);
}

.club-client-auth-input-wrap {
    position: relative;
}

.club-client-auth-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--club-client-border-strong);
    border-radius: 8px;
    font-size: 16px;
    line-height: 44px;
    color: var(--club-client-text);
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.club-client-auth-input:focus {
    border-color: var(--club-client-primary);
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
}

.club-client-auth-input.is-error,
.club-client-auth-otp.is-error {
    border-color: var(--club-client-danger) !important;
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.12);
}

.club-client-auth-input:disabled {
    background: #fafafa;
    cursor: not-allowed;
}

.club-client-auth-otp-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}

.club-client-auth-otp {
    width: 48px;
    height: 52px;
    padding: 0;
    border: 1px solid var(--club-client-border-strong);
    border-radius: 10px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    color: var(--club-client-text);
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.club-client-auth-otp:focus {
    border-color: var(--club-client-primary);
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
    transform: translateY(-1px);
}

.club-client-auth-otp.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.club-client-auth-error {
    display: block;
    min-height: 20px;
    margin-top: 6px;
    font-size: 13px;
    line-height: 20px;
    color: var(--club-client-danger);
    text-align: center;
}

.club-client-auth-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 32px;
    margin-top: 12px;
}

.club-client-auth-timer {
    font-size: 14px;
    font-weight: 500;
    color: var(--club-client-text-secondary);
    font-variant-numeric: tabular-nums;
}

.club-client-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    margin-top: 20px;
    padding: 0 18px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s, opacity 0.2s;
}

.club-client-auth-btn--primary {
    background: var(--club-client-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(22, 119, 255, 0.28);
}

.club-client-auth-btn--primary:hover:not(:disabled) {
    background: var(--club-client-primary-hover);
}

.club-client-auth-btn:active:not(:disabled) {
    transform: scale(0.985);
}

.club-client-auth-btn:disabled,
.club-client-auth-btn.is-loading {
    cursor: wait;
    opacity: 0.9;
}

.club-client-auth-btn-icon,
.club-client-auth-btn-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.club-client-auth-btn-spinner.is-hidden,
.club-client-auth-btn-icon.is-hidden {
    display: none;
}

.club-client-auth-btn-spinner .club-icon {
    animation: clubClientAuthSpin 0.75s linear infinite;
}

@keyframes clubClientAuthSpin {
    to { transform: rotate(360deg); }
}

.club-client-auth-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 0;
    border: none;
    background: none;
    color: var(--club-client-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s, opacity 0.15s;
}

.club-client-auth-link:hover:not(:disabled) {
    color: var(--club-client-primary-hover);
}

.club-client-auth-link:disabled {
    opacity: 0.55;
    cursor: wait;
}

.club-client-auth-link-wrap {
    text-align: right;
}

.club-client-auth-resend {
    margin-top: 0;
}

.club-client-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.club-client-auth-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.club-client-auth-overlay.hidden {
    display: none !important;
}

.club-client-auth-overlay:not(.hidden) {
    display: flex !important;
}

.club-client-auth-overlay-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 32px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--club-client-border);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.club-client-auth-overlay-ring {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(22, 119, 255, 0.14);
    border-top-color: var(--club-client-primary);
    animation: clubClientAuthSpin 0.72s linear infinite;
}

.club-client-auth-overlay-text {
    margin: 0;
    font-size: 14px;
    color: var(--club-client-text-secondary);
}

.club-client-auth-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    z-index: 200;
    max-width: min(400px, calc(100vw - 32px));
    padding: 12px 18px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.club-client-auth-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.club-client-auth-toast--error {
    background: linear-gradient(135deg, #ff7875 0%, #ff4d4f 100%);
}

.club-client-auth-toast--success {
    background: linear-gradient(135deg, #73d13d 0%, #52c41a 100%);
}

.club-client-auth-toast--info {
    background: linear-gradient(135deg, #4096ff 0%, #1677ff 100%);
}

.club-icon {
    display: block;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

.club-icon--sm {
    width: 1rem;
    height: 1rem;
}

.club-icon-spinner-track {
    opacity: 0.25;
}

.club-icon-spinner-head {
    opacity: 0.85;
}
