change login-page design

This commit is contained in:
2026-10-06 13:38:35 +03:30
parent ab22c4dd63
commit cf8a46ec9c
35 changed files with 1377 additions and 188 deletions
@@ -2,6 +2,12 @@
.dauth {
min-height: 100vh;
/* Force exact viewport sizing to avoid page scrolling */
height: 100vh;
width: 100vw;
overflow: hidden;
overscroll-behavior: none;
box-sizing: border-box;
background: #f6f7f9;
display: flex;
align-items: stretch;
@@ -489,6 +495,895 @@
}
}
/* ─── Bourse Mes login mockup (۳ ناحیه: تصویر | متن | کارت) ─── */
@boursecu-navy: #0b192e;
@boursecu-navy-deep: #0a1628;
@boursecu-icon-bg: #152a45;
@boursecu-copper: #d4843f;
@boursecu-copper-soft: #e8a04a;
@boursecu-btn: #1a3554;
.dauth--boursecu {
position: relative;
min-height: 100vh;
height: 100vh;
width: 100%;
overflow: hidden;
background: @boursecu-navy;
color: #fff;
display: flex;
flex-direction: column;
.dauth-page-logo {
position: absolute;
top: clamp(20px, 3.2vh, 36px);
left: clamp(28px, 3vw, 52px);
z-index: 6;
&__img {
display: block;
width: clamp(132px, 12.5vw, 172px);
height: auto;
max-height: clamp(112px, 16vh, 152px);
object-fit: contain;
}
}
.dauth__layout {
flex: 1 1 auto;
height: 100%;
min-height: 0;
display: grid;
direction: ltr;
/* تصویر چپ | متن وسط | کارت راست — موکاپ */
grid-template-columns: minmax(220px, 0.82fr) minmax(340px, 1.4fr) minmax(380px, 440px);
grid-template-rows: minmax(0, 1fr);
gap: clamp(8px, 1.4vw, 24px);
align-items: stretch;
padding:
clamp(88px, 11vh, 108px)
clamp(28px, 3.2vw, 52px)
clamp(88px, 11vh, 112px)
0;
}
/* تصویر: پایین‌چپ، بزرگ، bleed به لبه چپ/پایین */
.dauth-visual-col {
direction: ltr;
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: flex-start;
align-self: stretch;
min-height: 0;
height: auto;
padding: 0;
margin: 0;
overflow: visible;
pointer-events: none;
&__products {
display: block;
width: clamp(460px, 50vw, 740px);
max-width: none;
min-width: 380px;
max-height: min(66vh, 580px);
height: auto;
object-fit: contain;
object-position: left bottom;
margin: 0;
margin-inline-start: -10%;
margin-bottom: -28px;
transform: translateX(-8%);
mix-blend-mode: lighten;
pointer-events: none;
user-select: none;
}
}
/* متن: بالا هم‌تراز کارت؛ شعار پایین هم‌تراز لینک‌ها */
.dauth-center-col {
direction: rtl;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-self: stretch;
min-height: 0;
height: auto;
padding-top: 0;
padding-inline: clamp(4px, 1.2vw, 20px) clamp(4px, 1vw, 12px);
max-width: none;
width: 100%;
&__body {
display: flex;
flex-direction: column;
flex: 0 1 auto;
min-height: 0;
/* با tagline که margin-top:auto دارد → محتوا وسط‌چین عمودی مثل موکاپ */
margin-top: auto;
}
&__headline {
margin: 0 0 12px;
display: flex;
flex-direction: column;
gap: 2px;
font-weight: 700;
line-height: 1.3;
}
&__headline-line {
font-size: clamp(24px, 2.3vw, 32px);
color: #ffffff;
letter-spacing: -0.02em;
}
&__headline-accent {
font-size: clamp(32px, 3.2vw, 44px);
color: @boursecu-copper-soft;
letter-spacing: -0.02em;
font-weight: 800;
}
&__lead {
margin: 0 0 22px;
max-width: 520px;
font-size: 13px;
line-height: 1.9;
color: rgba(255, 255, 255, 0.64);
}
&__features {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 16px;
}
&__feature {
display: flex;
align-items: flex-start;
gap: 12px;
}
&__feature-icon {
display: flex;
align-items: center;
justify-content: center;
width: 42px;
height: 42px;
border-radius: 8px;
background: @boursecu-icon-bg;
border: 1px solid rgba(232, 160, 74, 0.4);
color: @boursecu-copper-soft;
flex-shrink: 0;
}
&__feature-title {
margin: 0;
font-size: 13px;
font-weight: 600;
color: #ffffff;
line-height: 1.5;
}
&__feature-desc {
margin: 2px 0 0;
font-size: 11px;
line-height: 1.5;
color: rgba(255, 255, 255, 0.48);
}
&__tagline {
display: inline-flex;
align-items: center;
gap: 10px;
width: fit-content;
max-width: 100%;
margin-top: auto;
/* هم‌تراز لینک‌ها؛ استاتوس زیر لینک‌هاست */
margin-bottom: calc(10px + 36px);
margin-inline-start: clamp(20px, 3.5vw, 48px);
padding-top: 0;
flex-shrink: 0;
font-size: 13px;
font-weight: 500;
line-height: 1.45;
color: rgba(255, 255, 255, 0.78);
}
&__tagline-line {
width: 40px;
height: 2px;
background: @boursecu-copper-soft;
border-radius: 1px;
flex-shrink: 0;
}
}
/* کارت+پشتیبانی وسط؛ فوتر (لینک+استاتوس) پایین راست — هم‌تراز شعار */
.dauth-form-panel {
direction: rtl;
background: transparent;
padding: 0 !important;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start; /* RTL: لبه راست ستون */
align-self: stretch;
min-height: 0;
height: auto;
width: 100%;
}
.dauth-form-column {
width: 100%;
max-width: 420px;
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
align-items: stretch;
gap: 0;
}
.dauth-form-column__top {
display: flex;
flex-direction: column;
gap: 14px;
flex: 0 0 auto;
margin-top: auto;
}
.dauth-form-column__foot {
display: flex;
flex-direction: column;
align-items: flex-start; /* RTL: راست‌چین زیر کارت */
gap: 10px;
flex-shrink: 0;
margin-top: auto;
margin-bottom: 8px;
margin-inline-start: 0;
padding-top: 0;
}
.dauth-form-support {
display: none;
align-items: center;
justify-content: center;
gap: 6px;
padding: 7px 16px;
border-radius: 999px;
border: 1px solid rgba(255, 255, 255, 0.45);
background: rgba(12, 28, 48, 0.94);
color: #ffffff;
font-size: 12px;
font-weight: 600;
font-family: inherit;
transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
&:hover {
background: rgba(10, 22, 40, 0.75);
border-color: rgba(255, 255, 255, 0.55);
}
&--fab {
position: fixed;
z-index: 5200;
display: inline-flex;
margin: 0;
min-height: 40px;
padding: 8px 14px;
cursor: grab;
user-select: none;
touch-action: none;
box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
&--fab-dragging {
cursor: grabbing;
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
opacity: 0.96;
}
}
.dauth-form-links {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: flex-start;
gap: 8px;
margin: 0;
padding: 0;
font-size: 12px;
line-height: 1.45;
color: rgba(255, 255, 255, 0.78);
&__link {
border: none;
background: transparent;
padding: 0;
font: inherit;
color: rgba(255, 255, 255, 0.82);
cursor: pointer;
transition: color 0.15s ease;
&:hover,
&--accent {
color: @boursecu-copper-soft;
}
}
&__text {
color: rgba(255, 255, 255, 0.72);
cursor: default;
user-select: none;
}
&__sep {
color: rgba(255, 255, 255, 0.28);
user-select: none;
}
}
.dauth-card {
width: 100%;
max-width: 420px;
border-radius: 14px;
padding: 24px 26px 20px;
box-shadow: none !important;
margin: 0;
}
.dauth-card__eyebrow {
color: #9ca3af;
font-size: 11px;
margin-bottom: 4px;
}
.dauth-card__title {
font-size: 26px;
font-weight: 700;
color: #0f172a;
}
.dauth-card__subtitle {
font-size: 12px;
color: #6b7280;
margin-top: 6px;
}
.dauth-toggle {
background: #eceff3;
border-radius: 12px;
padding: 5px;
gap: 6px;
margin-bottom: 20px;
&__btn {
border-radius: 10px;
padding: 10px 10px;
font-size: 12px;
font-weight: 600;
color: #4b5563;
&--active {
background: @boursecu-btn;
color: #ffffff;
box-shadow: 0 4px 12px rgba(15, 35, 60, 0.25);
}
}
}
.dauth-form {
:deep(.ant-form-item-label > label) {
font-size: 12px;
font-weight: 600;
color: #111827;
}
:deep(.ant-input),
:deep(.ant-input-affix-wrapper) {
border-radius: 12px;
min-height: 46px;
border-color: #d1d5db;
padding-inline: 14px;
font-size: 14px;
&:hover,
&:focus,
&-focused {
border-color: @boursecu-btn;
box-shadow: 0 0 0 2px rgba(26, 53, 84, 0.12);
}
}
:deep(.ant-input-affix-wrapper .ant-input-prefix) {
color: #9ca3af;
margin-inline-end: 8px;
}
}
.dauth-actions {
gap: 9px;
margin-top: 2px;
&__submit,
:deep(.noname-base-button.dauth-actions__submit) {
min-height: 44px;
border-radius: 10px;
font-size: 14px;
font-weight: 600;
background: @boursecu-btn !important;
border-color: @boursecu-btn !important;
}
}
.dauth-btn-stack {
width: 100%;
min-height: 44px;
border-radius: 10px;
border: 1px solid @boursecu-btn;
background: @boursecu-btn;
color: #fff;
font-size: 14px;
font-weight: 600;
font-family: inherit;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
cursor: pointer;
text-decoration: none;
box-sizing: border-box;
padding: 0 14px;
transition: opacity 0.15s ease, background 0.15s ease;
&:hover:not(:disabled):not(.dauth-btn-stack--disabled) {
opacity: 0.94;
color: #fff;
}
&:disabled,
&--disabled {
opacity: 0.55;
cursor: not-allowed;
pointer-events: none;
}
&--link {
color: #fff;
}
}
.dauth-link-btn--primary {
background: @boursecu-btn;
border-color: @boursecu-btn;
min-height: 44px;
border-radius: 10px;
font-size: 14px;
}
.dauth-switch {
margin-top: 14px;
font-size: 12px;
color: #6b7280;
&__link {
color: @boursecu-copper;
font-weight: 700;
}
}
.dauth-page-footer__status {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 12px 6px 10px;
border-radius: 999px;
border: 1px solid rgba(148, 180, 220, 0.28);
background: rgba(12, 28, 48, 0.92);
color: rgba(255, 255, 255, 0.9);
font-size: 11px;
white-space: nowrap;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
.dauth-page-footer__status-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
border-radius: 999px;
background: rgba(8, 18, 32, 0.85);
color: @boursecu-copper-soft;
flex-shrink: 0;
}
}
/* دسکتاپ متوسط: جمع‌وجورتر بدون کوچک‌کردن زیاد عکس */
@media (max-width: 1360px) and (min-width: 1101px) {
.dauth--boursecu {
.dauth__layout {
grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.3fr) minmax(360px, 420px);
gap: clamp(6px, 1vw, 16px);
padding-bottom: clamp(72px, 9vh, 96px);
}
.dauth-visual-col__products {
width: clamp(420px, 46vw, 640px);
min-width: 360px;
max-height: min(60vh, 520px);
margin-inline-start: -8%;
transform: translateX(-6%);
}
.dauth-form-column__foot {
gap: 10px;
}
.dauth-center-col {
&__headline-line,
&__headline-accent {
font-size: clamp(24px, 2.2vw, 30px);
}
&__lead {
font-size: 12px;
margin-bottom: 16px;
}
&__features {
gap: 12px;
}
}
}
}
/* ارتفاع کوتاه دسکتاپ */
@media (max-height: 780px) and (min-width: 768px) {
.dauth--boursecu {
.dauth__layout {
padding-top: clamp(72px, 9vh, 92px);
padding-bottom: clamp(28px, 4vh, 44px);
}
.dauth-visual-col__products {
max-height: min(48vh, 360px);
margin-bottom: -16px;
}
.dauth-center-col {
&__lead {
margin-bottom: 14px;
}
&__features {
gap: 10px;
}
&__feature-icon {
width: 36px;
height: 36px;
}
}
}
}
/* ─── تبلت عریض (≈768–1100): دو ستون — برند چپ، فرم راست ─── */
@media (max-width: 1100px) and (min-width: 768px) {
.dauth--boursecu {
.dauth-page-logo {
top: 20px;
left: 24px;
&__img {
width: clamp(110px, 14vw, 140px);
max-height: 120px;
}
}
.dauth__layout {
direction: ltr;
grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
grid-template-rows: auto minmax(0, 1fr);
grid-template-areas:
'brand form'
'visual form';
align-items: stretch;
gap: 16px 28px;
padding: 96px 28px 20px 0;
min-height: calc(100vh - 64px);
height: auto;
}
.dauth-center-col {
grid-area: brand;
order: unset;
min-height: auto;
height: auto;
max-width: none;
margin: 0;
padding: 8px 12px 0 20px;
justify-content: flex-start;
&__headline-line,
&__headline-accent {
font-size: clamp(24px, 3vw, 30px);
}
&__lead {
font-size: 13px;
margin-bottom: 18px;
}
&__features {
gap: 14px;
}
&__tagline {
margin-top: 20px;
padding-top: 0;
}
}
.dauth-visual-col {
grid-area: visual;
order: unset;
min-height: auto;
align-items: flex-start;
justify-content: flex-end;
padding-bottom: 0;
&__products {
width: clamp(360px, 44vw, 520px);
min-width: 320px;
max-height: min(46vh, 380px);
margin-inline-start: -4%;
margin-bottom: -8px;
transform: translateX(-4%);
mix-blend-mode: lighten;
}
}
.dauth-form-panel {
grid-area: form;
order: unset;
justify-content: flex-start;
align-items: flex-start;
align-self: stretch;
padding-inline-end: 8px;
width: 100%;
height: auto;
}
.dauth-form-column {
max-width: 400px;
margin: 0;
width: 100%;
flex: 1 1 auto;
height: auto;
}
.dauth-center-col__body {
margin-top: 0;
}
.dauth-form-column__top {
margin-top: 0;
}
.dauth-form-column__foot {
margin-top: auto;
}
.dauth-card {
box-shadow: none !important;
padding: 22px 22px 18px;
}
}
}
/* ─── موبایل (<768): لوگو + کارت + پشتیبانی، وسط‌چین عمودی ─── */
@media (max-width: 767px) {
.dauth--boursecu {
min-height: 100dvh;
display: flex;
flex-direction: column;
justify-content: center;
padding: 12px 0;
.dauth-page-logo {
position: relative;
top: auto;
left: auto;
transform: none;
display: flex;
justify-content: center;
padding: 0 16px 12px;
z-index: 5;
flex-shrink: 0;
&__img {
width: 104px;
max-height: 96px;
}
}
.dauth__layout {
display: flex;
flex-direction: column;
direction: rtl;
flex: 0 1 auto;
gap: 12px;
padding: 0 16px;
min-height: 0;
width: 100%;
}
.dauth-form-panel {
order: 1;
width: 100%;
justify-content: center;
padding: 0;
}
.dauth-form-column {
max-width: none;
width: 100%;
height: auto;
gap: 0;
}
.dauth-form-column__top {
gap: 12px;
margin-top: 0;
}
.dauth-form-column__foot {
margin-top: 10px;
margin-bottom: 0;
margin-inline-start: 0;
padding-top: 0;
align-items: center;
gap: 8px;
}
.dauth-page-footer__status {
display: none;
}
.dauth-card {
max-width: none;
width: 100%;
border-radius: 14px;
padding: 20px 16px 16px;
box-shadow: none !important;
}
.dauth-card__header {
margin-bottom: 18px;
}
.dauth-card__title {
font-size: 22px;
}
.dauth-card__subtitle {
font-size: 12px;
margin-top: 4px;
}
.dauth-toggle {
margin-bottom: 14px;
padding: 4px;
gap: 4px;
&__btn {
padding: 10px 6px;
font-size: 12px;
}
}
.dauth-form {
&.ant-form-vertical :deep(.ant-form-item) {
margin-bottom: 14px;
}
:deep(.ant-input),
:deep(.ant-input-affix-wrapper) {
min-height: 44px;
}
}
.dauth-actions {
gap: 8px;
margin-top: 0;
}
.dauth-btn-stack,
.dauth-actions__submit,
:deep(.noname-base-button.dauth-actions__submit) {
min-height: 44px;
border-radius: 10px;
font-size: 13px;
}
.dauth-form-links {
display: flex;
justify-content: center;
width: 100%;
gap: 6px 8px;
font-size: 11px;
line-height: 1.6;
text-align: center;
flex-wrap: wrap;
margin: 0;
padding: 0;
}
.dauth-center-col {
display: flex;
order: 2;
min-height: auto;
height: auto;
max-width: none;
width: 100%;
padding: 4px 0 0;
justify-content: center;
align-items: center;
&__body {
display: none;
margin-top: 0;
}
&__tagline {
display: inline-flex;
justify-content: center;
margin: 8px 0 0;
padding-top: 0;
font-size: 12px;
}
}
.dauth-visual-col {
display: none;
}
.dauth-switch {
margin-top: 12px;
font-size: 11px;
}
}
}
@media (max-width: 400px) {
.dauth--boursecu {
.dauth-page-logo {
&__img {
width: 88px;
max-height: 80px;
}
}
.dauth-form-links {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px 10px;
justify-items: center;
&__sep {
display: none;
}
}
}
}
.login-form--desktop {
:deep(.ant-form-item) {
margin-bottom: 18px;