2206
редагувань
Admin (обговорення | внесок) (login v2.24: дві картки бок-о-бок (вхід | реєстрація) через grid) |
Admin (обговорення | внесок) (login v2.25: відкат + JS injection right panel) |
||
| Рядок 1033: | Рядок 1033: | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* .mw-content-container — flex | /* .mw-content-container — flex row для двох карток (login | register) поряд */ | ||
body.mw-special-Userlogin .mw-content-container, | body.mw-special-Userlogin .mw-content-container, | ||
body.mw-special-CreateAccount .mw-content-container { | body.mw-special-CreateAccount .mw-content-container { | ||
| Рядок 1045: | Рядок 1044: | ||
border: none !important; | border: none !important; | ||
display: flex !important; | display: flex !important; | ||
flex-direction: | flex-direction: row !important; | ||
flex-wrap: wrap !important; | |||
align-items: center !important; | align-items: center !important; | ||
justify-content: center !important; | justify-content: center !important; | ||
gap: 24px !important; | |||
flex: 1 1 auto !important; | flex: 1 1 auto !important; | ||
grid-column: 1 / -1 !important; | grid-column: 1 / -1 !important; | ||
} | |||
/* Картки однакової ширини */ | |||
body.mw-special-Userlogin .mw-body, | |||
body.mw-special-Userlogin .mw-register-panel, | |||
body.mw-special-CreateAccount .mw-body, | |||
body.mw-special-CreateAccount .mw-register-panel { | |||
flex: 0 1 420px !important; | |||
} | } | ||
/* .mw- | /* === ПРАВА панель: реєстрація === */ | ||
.mw-register-panel { | |||
background: #ffffff; | |||
border-radius: 20px; | |||
padding: 56px 32px 40px; | |||
box-shadow: | |||
0 1px 2px rgba(26, 34, 64, 0.04), | |||
0 8px 32px rgba(26, 34, 64, 0.10); | |||
position: relative; | |||
max-width: | overflow: hidden; | ||
display: | box-sizing: border-box; | ||
text-align: center; | |||
z-index: 2; | |||
align-self: stretch; | |||
display: flex; | |||
flex-direction: column; | |||
justify-content: center; | |||
align-items: center; | |||
} | |||
/* Top-stripe як у лівій */ | |||
.mw-register-panel::before { | |||
content: ""; | |||
position: absolute; | |||
top: 0; | |||
left: 0; | |||
right: 0; | |||
height: 3px; | |||
background: linear-gradient(90deg, | |||
#f84840 0%, #f84840 25%, | |||
#f8b020 25%, #f8b020 50%, | |||
#1070b0 50%, #1070b0 75%, | |||
#00b898 75%, #00b898 100%); | |||
z-index: 1; | |||
} | |||
.mw-register-panel__title { | |||
font-family: "Manrope", sans-serif; | |||
font-weight: 800; | |||
font-size: 32px; | |||
color: #1a2240; | |||
letter-spacing: -0.02em; | |||
line-height: 1.1; | |||
margin-bottom: 8px; | |||
} | |||
.mw-register-panel__sub { | |||
font-family: "Manrope", sans-serif; | |||
font-weight: 400; | |||
font-size: 15px; | |||
color: #6b7280; | |||
line-height: 1.4; | |||
margin-bottom: 32px; | |||
max-width: 280px; | |||
} | |||
.mw-register-panel__cta { | |||
display: inline-block; | |||
background: #00b898; | |||
color: #ffffff !important; | |||
font-family: "Manrope", sans-serif; | |||
font-weight: 600; | |||
font-size: 16px; | |||
padding: 14px 28px; | |||
border-radius: 10px; | |||
text-decoration: none !important; | |||
transition: background 0.15s, transform 0.05s; | |||
} | |||
.mw-register-panel__cta:hover { | |||
background: #009e82; | |||
text-decoration: none !important; | |||
} | } | ||
.mw-register-panel__cta:active { | |||
transform: translateY(1px); | |||
} | } | ||
/* | /* Mobile — стак вертикально */ | ||
body.mw-special-Userlogin | @media (max-width: 880px) { | ||
body.mw-special-CreateAccount | body.mw-special-Userlogin .mw-body, | ||
body.mw-special-Userlogin .mw-register-panel, | |||
body.mw-special-CreateAccount .mw-body, | |||
body.mw-special-CreateAccount .mw-register-panel { | |||
flex: 0 1 calc(100% - 32px) !important; | |||
max-width: 420px !important; | |||
} | |||
} | } | ||
/* | /* .mw-body — це КАРТКА входу (зліва). Біла, з тінню, top-страйп. */ | ||
body.mw-special-Userlogin | body.mw-special-Userlogin .mw-body, | ||
body.mw-special-CreateAccount .mw-body { | |||
body | |||
body.mw-special-CreateAccount .mw- | |||
background: #ffffff !important; | background: #ffffff !important; | ||
border-radius: 20px !important; | border-radius: 20px !important; | ||
| Рядок 1094: | Рядок 1152: | ||
0 1px 2px rgba(26, 34, 64, 0.04), | 0 1px 2px rgba(26, 34, 64, 0.04), | ||
0 8px 32px rgba(26, 34, 64, 0.10) !important; | 0 8px 32px rgba(26, 34, 64, 0.10) !important; | ||
overflow: hidden !important; | |||
width: calc(100% - 32px) !important; | |||
box-sizing: border-box; | max-width: 420px !important; | ||
display: block !important; | |||
align-items: initial !important; | |||
box-sizing: border-box !important; | |||
position: relative !important; | |||
margin: 0 !important; | |||
z-index: 2 !important; | |||
} | } | ||
/* 4-кольорова смуга зверху | /* 4-кольорова смуга зверху карточки (бренд-акцент) */ | ||
body.mw-special-Userlogin .mw-body::before, | |||
body.mw-special-Userlogin .mw- | body.mw-special-CreateAccount .mw-body::before { | ||
body | |||
body.mw-special-CreateAccount .mw- | |||
content: ""; | content: ""; | ||
position: absolute; | position: absolute; | ||
| Рядок 1118: | Рядок 1177: | ||
#f84840 75%, #f84840 100%); | #f84840 75%, #f84840 100%); | ||
z-index: 1; | z-index: 1; | ||
} | } | ||
/* Сховати page-titlebar (header області) — він не потрібен на login */ | /* Сховати page-titlebar (header області) — він не потрібен на login */ | ||
| Рядок 1197: | Рядок 1227: | ||
} | } | ||
/* | /* #bodyContent / #mw-content-text — прозорі прохідники всередині .mw-body */ | ||
body.mw-special-Userlogin #bodyContent, | body.mw-special-Userlogin #bodyContent, | ||
body.mw-special-CreateAccount #bodyContent, | body.mw-special-CreateAccount #bodyContent, | ||
body.mw-special-Userlogin #mw-content-text, | body.mw-special-Userlogin #mw-content-text, | ||
body.mw-special-CreateAccount #mw-content-text | body.mw-special-CreateAccount #mw-content-text { | ||
background: none !important; | |||
border: none !important; | |||
padding: 0 !important; | |||
margin: 0 !important; | |||
width: 100% !important; | |||
max-width: none !important; | |||
box-sizing: border-box; | |||
} | |||
/* #userloginForm — не картка, просто wrapper для форми */ | |||
body.mw-special-Userlogin #userloginForm, | body.mw-special-Userlogin #userloginForm, | ||
body.mw-special-CreateAccount #userloginForm { | body.mw-special-CreateAccount #userloginForm { | ||
background: none !important; | |||
border-radius: 0 !important; | |||
padding: 0 !important; | |||
box-shadow: none !important; | |||
margin: 16px 0 0 0 !important; | |||
overflow: visible !important; | |||
} | |||
body.mw-special-Userlogin #userloginForm::before, | |||
body.mw-special-CreateAccount #userloginForm::before { | |||
content: none !important; | |||
} | } | ||
/* Видалити старий top-stripe з #userloginForm (тепер на .mw-body) */ | /* Видалити старий top-stripe з #userloginForm (тепер на .mw-body) */ | ||