hesabixWpTheme/assets/css/portal-auth.css

767 lines
13 KiB
CSS

/**
* پورتال مشتریان — احراز هویت مجتمع
*/
.hpauth-wrap {
--hpauth-brand-deep: #0c4a6e;
--hpauth-brand-mid: var(--brand-600, #0284c7);
--hpauth-brand: var(--brand-500, #0ea5e9);
--hpauth-brand-light: var(--brand-200, #bae6fd);
--hpauth-surface: #fff;
--hpauth-text: #0f172a;
--hpauth-muted: #64748b;
--hpauth-border: #e2e8f0;
--hpauth-success: #059669;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: stretch;
background: linear-gradient(
135deg,
var(--hpauth-brand-deep) 0%,
var(--hpauth-brand-mid) 40%,
var(--hpauth-brand) 100%
);
}
/* نوار بازگشت */
.hpauth-topbar {
position: sticky;
top: 0;
z-index: 20;
padding: 0.75rem 1rem;
background: rgba(12, 74, 110, 0.35);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.hpauth-back {
display: inline-flex;
align-items: center;
gap: 0.5rem;
text-decoration: none;
font-size: 0.875rem;
font-weight: 600;
color: #f0f9ff;
transition: opacity 0.2s, color 0.2s;
font-family: inherit;
background: none;
border: none;
padding: 0;
cursor: pointer;
}
.hpauth-back:hover {
opacity: 0.9;
color: #fff;
}
.hpauth-back--form {
display: none;
color: var(--hpauth-brand-mid);
margin-bottom: 1.25rem;
}
.hpauth-back--form:hover {
color: var(--hpauth-brand-deep);
}
.hpauth-icon {
flex-shrink: 0;
}
.hpauth-layout {
display: grid;
grid-template-columns: 1fr;
width: 100%;
flex: 1;
max-width: 72rem;
margin: 0 auto;
}
@media (min-width: 900px) {
.hpauth-topbar {
display: none;
}
.hpauth-back--form {
display: none;
}
.hpauth-layout {
grid-template-columns: 1fr 1fr;
max-width: none;
margin: 0;
}
}
.hpauth-panel {
display: flex;
align-items: center;
justify-content: center;
padding: 1.5rem 1rem;
}
.hpauth-panel--benefits {
background: transparent;
color: #f0f9ff;
}
@media (min-width: 900px) {
.hpauth-panel--benefits {
padding: 3rem 2.5rem;
}
}
.hpauth-panel--form {
background: var(--hpauth-surface);
border-radius: 1.5rem 1.5rem 0 0;
box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
}
@media (min-width: 900px) {
.hpauth-panel--form {
border-radius: 0;
box-shadow: -8px 0 40px rgba(0, 0, 0, 0.08);
}
}
.hpauth-panel__inner {
width: 100%;
max-width: 26rem;
}
.hpauth-panel--benefits .hpauth-panel__inner {
max-width: 28rem;
}
.hpauth-brand {
display: inline-flex;
align-items: center;
gap: 0.75rem;
text-decoration: none;
color: inherit;
margin-bottom: 2rem;
transition: opacity 0.2s;
}
.hpauth-brand:hover {
opacity: 0.92;
}
.hpauth-brand__img {
border-radius: 0.75rem;
object-fit: contain;
background: rgba(255, 255, 255, 0.15);
}
.hpauth-brand__letter {
width: 3rem;
height: 3rem;
display: flex;
align-items: center;
justify-content: center;
border-radius: 0.75rem;
background: rgba(255, 255, 255, 0.2);
font-size: 1.25rem;
font-weight: 700;
}
.hpauth-brand__name {
font-weight: 700;
font-size: 1.125rem;
}
.hpauth-panel__title {
font-size: 1.75rem;
font-weight: 800;
line-height: 1.3;
margin: 0 0 0.75rem;
}
.hpauth-panel__lead {
font-size: 1rem;
line-height: 1.7;
opacity: 0.92;
margin: 0 0 2rem;
}
.hpauth-benefits {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 1rem;
}
.hpauth-benefits__item {
display: flex;
align-items: flex-start;
gap: 0.75rem;
font-size: 0.95rem;
line-height: 1.5;
}
.hpauth-benefits__icon {
flex-shrink: 0;
width: 2.25rem;
height: 2.25rem;
display: flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.15);
border-radius: 0.5rem;
}
/* تب‌ها */
.hpauth-tabs {
display: flex;
gap: 0.25rem;
margin-bottom: 1.5rem;
padding: 0.25rem;
background: #f1f5f9;
border-radius: 0.75rem;
}
.hpauth-tabs__btn {
flex: 1;
border: none;
background: transparent;
padding: 0.625rem 0.5rem;
font-size: 0.875rem;
font-weight: 600;
color: var(--hpauth-muted);
border-radius: 0.5rem;
cursor: pointer;
transition: background 0.2s, color 0.2s;
font-family: inherit;
}
.hpauth-tabs__btn:hover {
color: var(--hpauth-text);
}
.hpauth-tabs__btn.is-active,
.hpauth-tabs__btn[aria-selected="true"] {
background: var(--hpauth-surface);
color: var(--hpauth-brand-mid);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.hpauth-view__title {
font-size: 1.375rem;
font-weight: 700;
margin: 0 0 0.35rem;
color: var(--hpauth-text);
}
.hpauth-view__desc {
font-size: 0.9rem;
color: var(--hpauth-muted);
margin: 0 0 1.25rem;
}
.hpauth-mode {
display: flex;
gap: 0.5rem;
margin-bottom: 1rem;
}
.hpauth-mode__btn {
flex: 1;
padding: 0.5rem;
border: 1px solid var(--hpauth-border);
background: #f8fafc;
border-radius: 0.5rem;
font-size: 0.8125rem;
font-weight: 600;
cursor: pointer;
font-family: inherit;
color: var(--hpauth-muted);
transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.hpauth-mode__btn.is-active {
border-color: var(--hpauth-brand);
background: #e0f2fe;
color: var(--hpauth-brand-mid);
}
.hpauth-channel {
margin-bottom: 1rem;
}
.hpauth-channel__opts {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 0.35rem;
}
.hpauth-channel__btn {
padding: 0.45rem 0.85rem;
border: 1px solid var(--hpauth-border);
background: #f8fafc;
border-radius: 0.5rem;
font-size: 0.8125rem;
font-weight: 600;
cursor: pointer;
font-family: inherit;
color: var(--hpauth-muted);
transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.hpauth-channel__btn.is-active {
border-color: var(--hpauth-brand);
background: #e0f2fe;
color: var(--hpauth-brand-mid);
}
.hpauth-field {
margin-bottom: 1rem;
}
.hpauth-field__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
margin-bottom: 0.35rem;
}
.hpauth-field__head .hpauth-label {
margin-bottom: 0;
}
.hpauth-field-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.75rem;
}
.hpauth-label {
display: block;
font-size: 0.8125rem;
font-weight: 600;
color: #334155;
margin-bottom: 0.35rem;
}
.hpauth-required {
color: #ef4444;
}
.hpauth-input-wrap {
position: relative;
}
.hpauth-input-wrap--password .hpauth-input {
padding-inline-start: 2.75rem;
}
.hpauth-input-toggle {
position: absolute;
inset-inline-start: 0.5rem;
top: 50%;
transform: translateY(-50%);
width: 2.25rem;
height: 2.25rem;
border: none;
background: transparent;
color: var(--hpauth-muted);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
border-radius: 0.375rem;
padding: 0;
}
.hpauth-input-toggle:hover {
color: var(--hpauth-brand-mid);
background: #f1f5f9;
}
.hpauth-input-toggle__hide {
display: none;
}
.hpauth-input-toggle.is-visible .hpauth-input-toggle__show {
display: none;
}
.hpauth-input-toggle.is-visible .hpauth-input-toggle__hide {
display: block;
}
.hpauth-input {
width: 100%;
padding: 0.75rem 1rem;
border: 1px solid var(--hpauth-border);
border-radius: 0.625rem;
font-size: 1rem;
font-family: inherit;
background: var(--hpauth-surface);
transition: border-color 0.2s, box-shadow 0.2s;
box-sizing: border-box;
}
.hpauth-input:focus {
outline: none;
border-color: var(--hpauth-brand);
box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}
.hpauth-password-strength {
height: 4px;
background: var(--hpauth-border);
border-radius: 999px;
margin-top: 0.5rem;
overflow: hidden;
}
.hpauth-password-strength[aria-hidden="true"] {
display: none;
}
.hpauth-password-strength__bar {
display: block;
height: 100%;
width: 0;
border-radius: inherit;
background: #ef4444;
transition: width 0.25s, background 0.25s;
}
.hpauth-password-strength.is-fair .hpauth-password-strength__bar {
width: 50%;
background: #f59e0b;
}
.hpauth-password-strength.is-good .hpauth-password-strength__bar {
width: 75%;
background: var(--hpauth-brand);
}
.hpauth-password-strength.is-strong .hpauth-password-strength__bar {
width: 100%;
background: var(--hpauth-success);
}
.hpauth-check {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.875rem;
color: #475569;
margin-bottom: 1rem;
cursor: pointer;
}
.hpauth-check input {
width: 1rem;
height: 1rem;
accent-color: var(--hpauth-brand);
}
.hpauth-captcha__row {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.5rem;
}
.hpauth-captcha__img {
border-radius: 0.375rem;
border: 1px solid var(--hpauth-border);
background: #f8fafc;
min-height: 48px;
}
.hpauth-captcha__refresh {
flex-shrink: 0;
width: 2.5rem;
height: 2.5rem;
border: 1px solid var(--hpauth-border);
border-radius: 0.5rem;
background: #f8fafc;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: var(--hpauth-muted);
}
.hpauth-captcha__refresh:hover {
background: #e0f2fe;
color: var(--hpauth-brand-mid);
}
.hpauth-submit {
position: relative;
width: 100%;
padding: 0.875rem 1.25rem;
border: none;
border-radius: 0.625rem;
background: linear-gradient(to left, var(--hpauth-brand-mid), var(--hpauth-brand));
color: #fff;
font-size: 1rem;
font-weight: 700;
font-family: inherit;
cursor: pointer;
transition: opacity 0.2s, transform 0.15s;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
min-height: 3rem;
}
.hpauth-submit:hover:not(:disabled):not(.is-loading) {
opacity: 0.95;
}
.hpauth-submit:disabled,
.hpauth-submit.is-loading {
opacity: 0.75;
cursor: not-allowed;
pointer-events: none;
}
.hpauth-submit--secondary {
background: #f1f5f9;
color: var(--hpauth-brand-mid);
margin-bottom: 1rem;
}
.hpauth-submit--register {
background: linear-gradient(to left, var(--hpauth-success), #10b981);
}
.hpauth-submit__spinner {
display: none;
width: 1.125rem;
height: 1.125rem;
border: 2px solid rgba(255, 255, 255, 0.35);
border-top-color: #fff;
border-radius: 50%;
animation: hpauth-spin 0.65s linear infinite;
flex-shrink: 0;
}
.hpauth-submit--secondary .hpauth-submit__spinner {
border-color: rgba(2, 132, 199, 0.25);
border-top-color: var(--hpauth-brand-mid);
}
.hpauth-form.is-loading .hpauth-submit[type="submit"] .hpauth-submit__spinner,
.hpauth-submit.is-loading .hpauth-submit__spinner {
display: block;
}
.hpauth-form.is-loading .hpauth-submit[type="submit"] .hpauth-submit__text,
.hpauth-submit.is-loading .hpauth-submit__text {
opacity: 0.85;
}
@keyframes hpauth-spin {
to {
transform: rotate(360deg);
}
}
.hpauth-otp-block {
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px solid var(--hpauth-border);
}
.hpauth-otp-inputs {
display: flex;
gap: 0.5rem;
justify-content: center;
margin-bottom: 0.75rem;
direction: ltr;
}
.hpauth-otp-digit {
width: 2.5rem;
height: 2.75rem;
text-align: center;
font-size: 1.25rem;
font-weight: 700;
border: 1px solid var(--hpauth-border);
border-radius: 0.5rem;
font-family: inherit;
}
.hpauth-otp-digit:focus {
outline: none;
border-color: var(--hpauth-brand);
box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.25);
}
.hpauth-otp-timer {
font-size: 0.8125rem;
color: var(--hpauth-muted);
text-align: center;
margin: 0 0 0.75rem;
}
.hpauth-reg-details {
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px solid var(--hpauth-border);
}
.hpauth-legal {
font-size: 0.75rem;
color: #94a3b8;
margin: 0 0 1rem;
line-height: 1.5;
}
.hpauth-legal a {
color: var(--hpauth-brand-mid);
text-decoration: underline;
text-underline-offset: 2px;
}
.hpauth-legal a:hover {
color: var(--hpauth-brand-deep);
}
.hpauth-hint {
font-size: 0.8125rem;
margin: 0 0 1rem;
line-height: 1.5;
}
.hpauth-hint--muted {
color: var(--hpauth-muted);
}
.hpauth-link {
border: none;
background: none;
padding: 0;
font: inherit;
font-size: 0.8125rem;
font-weight: 600;
color: var(--hpauth-brand-mid);
cursor: pointer;
text-decoration: underline;
text-underline-offset: 2px;
}
.hpauth-link:hover {
color: var(--hpauth-brand-deep);
}
.hpauth-switch {
margin: 1.25rem 0 0;
padding-top: 1rem;
border-top: 1px solid var(--hpauth-border);
font-size: 0.875rem;
color: var(--hpauth-muted);
text-align: center;
}
.hpauth-alert {
padding: 0.75rem 1rem;
border-radius: 0.5rem;
font-size: 0.875rem;
margin-bottom: 1rem;
line-height: 1.5;
}
.hpauth-alert--error {
background: #fef2f2;
color: #b91c1c;
border: 1px solid #fecaca;
}
.hpauth-alert--success {
background: #f0fdf4;
color: #15803d;
border: 1px solid #bbf7d0;
}
body.hesabix2-portal-auth .site-header-bar,
body.hesabix2-portal-auth #site-header,
body.hesabix2-portal-auth #mobile-menu,
body.hesabix2-portal-auth .site-footer {
display: none !important;
}
body.hesabix2-portal-auth #content,
body.hesabix2-portal-auth .site-content {
padding: 0;
margin: 0;
max-width: none;
}
@media (max-width: 899px) {
.hpauth-back--form {
display: inline-flex;
}
.hpauth-panel--benefits {
padding-bottom: 0.75rem;
min-height: auto;
}
.hpauth-benefits {
display: none;
}
.hpauth-panel__lead {
margin-bottom: 0;
font-size: 0.9rem;
}
.hpauth-brand {
margin-bottom: 1rem;
}
.hpauth-panel__title {
font-size: 1.35rem;
}
.hpauth-field-row {
grid-template-columns: 1fr;
}
}
@media (max-width: 479px) {
.hpauth-tabs__btn {
font-size: 0.75rem;
padding: 0.5rem 0.25rem;
}
.hpauth-otp-digit {
width: 2.125rem;
height: 2.5rem;
font-size: 1.1rem;
}
}
@media (prefers-reduced-motion: reduce) {
.hpauth-submit,
.hpauth-tabs__btn,
.hpauth-mode__btn,
.hpauth-input,
.hpauth-back,
.hpauth-brand {
transition: none;
}
.hpauth-submit__spinner {
animation: none;
border-top-color: transparent;
opacity: 0.6;
}
}