sw-fe/src/styles/auth-modal.css

233 lines
5.6 KiB
CSS

.auth-modal-backdrop {
position: fixed;
inset: 0;
z-index: 10000020;
display: flex;
align-items: center;
justify-content: center;
background: rgba(2, 6, 23, 0.65);
backdrop-filter: blur(8px);
}
.auth-modal {
width: min(640px, 95vw);
border-radius: 22px;
padding: 1.1rem 1.25rem 1.35rem;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
border: 1px solid rgba(148, 163, 184, 0.7);
}
body[data-theme="dark"] .auth-modal {
background: radial-gradient(circle at top left, #0f172a, #020617 70%);
}
body[data-theme="blue"] .auth-modal {
background: radial-gradient(circle at top left, #0ea5e9, #020617 65%);
border-color: rgba(96, 165, 250, 0.9);
}
body[data-theme="light"] .auth-modal {
background: radial-gradient(circle at top left, #ffffff, #e5e7eb 70%);
color: #020617;
border-color: rgba(148, 163, 184, 0.7);
}
.auth-modal-header { display:flex; align-items:center; gap:.5rem; margin-bottom:.9rem; }
.auth-tab {
padding: .45rem .95rem;
border-radius: 999px;
border: 1px solid transparent;
background: transparent;
font-size: .85rem;
color: #e5e7eb;
cursor: pointer;
}
.auth-tab-active {
background: linear-gradient(135deg, #1d4ed8, #38bdf8);
border-color: rgba(191, 219, 254, 0.9);
color: #f9fafb;
}
body[data-theme="light"] .auth-tab { color:#0f172a; }
body[data-theme="light"] .auth-tab-active { color:#f9fafb; }
.auth-close {
margin-left:auto;
width:32px; height:32px;
border-radius:999px;
border:1px solid rgba(148, 163, 184, 0.6);
background: rgba(15, 23, 42, 0.85);
color:#e5e7eb;
font-size:.8rem;
cursor:pointer;
}
body[data-theme="light"] .auth-close { background:#e5e7eb; color:#020617; }
.auth-form { display:flex; flex-direction:column; gap:.7rem; }
.auth-row { display:flex; gap:.6rem; }
.auth-row label { flex:1; }
.auth-form label { display:flex; flex-direction:column; font-size:.8rem; gap:.25rem; }
.auth-form input {
border-radius: 999px;
border: 1px solid rgba(51, 65, 85, 0.9);
background: rgba(15, 23, 42, 0.96);
color: #e5e7eb;
padding: .55rem .85rem;
font-size: .85rem;
}
body[data-theme="light"] .auth-form input {
background:#f9fafb;
color:#020617;
border-color: rgba(148, 163, 184, 0.9);
}
.btn-full { width:100%; margin-top:.4rem; }
.auth-divider{
display:flex;
align-items:center;
justify-content:center;
gap:.6rem;
margin:.85rem 0 .65rem;
font-size:.7rem;
text-transform:uppercase;
letter-spacing:.08em;
color: rgba(226, 232, 240, 0.75);
}
.auth-divider::before,
.auth-divider::after{
content:"";
flex:1;
height:1px;
background: rgba(148, 163, 184, 0.35);
}
.auth-oauth{
display:flex;
flex-direction:column;
gap:.55rem;
}
.btn-oauth{
display:flex;
align-items:center;
justify-content:center;
gap:.5rem;
width:100%;
border-radius:999px;
padding:.6rem .85rem;
border: 1px solid rgba(148, 163, 184, 0.5);
background: rgba(15, 23, 42, 0.85);
color: #e5e7eb;
font-weight: 700;
font-size: .85rem;
cursor: pointer;
}
.btn-oauth:hover{
border-color: rgba(56, 189, 248, 0.9);
box-shadow: 0 8px 20px rgba(14, 116, 144, 0.25);
}
.btn-oauth i{ font-size: .95rem; }
.btn-oauth-google{ background: rgba(234, 88, 12, 0.15); }
.btn-oauth-facebook{ background: rgba(37, 99, 235, 0.2); }
body[data-theme="light"] .auth-divider{ color: rgba(15, 23, 42, 0.6); }
body[data-theme="light"] .auth-divider::before,
body[data-theme="light"] .auth-divider::after{ background: rgba(15, 23, 42, 0.12); }
body[data-theme="light"] .btn-oauth{
background: rgba(255, 255, 255, 0.9);
color: #0f172a;
border-color: rgba(148, 163, 184, 0.7);
}
.auth-error {
margin-top:.25rem;
font-size:.8rem;
color:#fecaca;
background: rgba(127, 29, 29, 0.55);
border-radius:.5rem;
padding:.4rem .6rem;
border: 1px solid rgba(248, 113, 113, 0.7);
}
@media (max-width:480px){
.auth-modal { padding:.95rem .9rem 1.1rem; }
.auth-row { flex-direction:column; }
}
/* SW_AUTH_NOTICE:BEGIN */
.auth-notice{
margin: .2rem 0 .65rem;
padding: .55rem .7rem;
border-radius: 14px;
font-size: .82rem;
font-weight: 800;
line-height: 1.2;
border: 1px solid rgba(148,163,184,.35);
background: rgba(2,6,23,.22);
color: #e5e7eb;
}
.auth-notice-success{
background: rgba(34,197,94,0.14);
border-color: rgba(34,197,94,0.55);
color: #d1fae5;
}
.auth-notice-error{
background: rgba(248,113,113,0.14);
border-color: rgba(248,113,113,0.55);
color: #ffe4e6;
}
.auth-notice-warn{
background: rgba(251,191,36,0.12);
border-color: rgba(251,191,36,0.40);
color: #fffbeb;
}
body[data-theme="light"] .auth-notice{
background: rgba(255,255,255,0.92);
border-color: rgba(148,163,184,0.75);
color: #0b1220;
}
body[data-theme="light"] .auth-notice-success{ color:#0b1220; }
body[data-theme="light"] .auth-notice-error{ color:#0b1220; }
body[data-theme="light"] .auth-notice-warn{ color:#0b1220; }
/* SW_AUTH_NOTICE:END */
/* SW_AUTH_MODAL_NOTICE_POLISH:BEGIN */
.auth-notice{
margin: 0 0 .65rem 0;
padding: .65rem .75rem;
border-radius: 14px;
font-size: .82rem;
font-weight: 800;
line-height: 1.2;
border: 1px solid rgba(148,163,184,.35);
background: rgba(2,6,23,.22);
color: #e5e7eb;
}
.auth-notice-success{
background: rgba(34,197,94,0.14);
border-color: rgba(34,197,94,0.55);
color: #d1fae5;
}
.auth-notice-error{
background: rgba(248,113,113,0.14);
border-color: rgba(248,113,113,0.55);
color: #ffe4e6;
}
.auth-notice-warn{
background: rgba(251,191,36,0.12);
border-color: rgba(251,191,36,0.40);
color: #fffbeb;
}
.auth-notice-info{
background: rgba(56,189,248,0.14);
border-color: rgba(56,189,248,0.55);
color: #e0f2fe;
}
/* SW_AUTH_MODAL_NOTICE_POLISH:END */