HR-ATS-Portal/frontend/src/styles/auth.css

368 lines
6.1 KiB
CSS

/* ============================================================
Auth shell — TalentFlow / Utopia Brands
New classes only. Reuses .btn, .form-field, .card, .brand-*,
.link-btn, .page-title from shared styles.css.
============================================================ */
.auth-shell {
min-height: 100dvh;
display: grid;
grid-template-columns: minmax(280px, 42%) 1fr;
background: var(--bg);
}
.auth-aside {
position: relative;
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 32px;
padding: 40px 44px;
background: var(--brand-green);
color: #fff;
overflow: hidden;
}
.auth-aside::before {
content: '';
position: absolute;
inset: auto -20% -30% 20%;
height: 70%;
background:
radial-gradient(ellipse at center, rgba(206, 255, 113, 0.28), transparent 65%);
pointer-events: none;
}
.auth-aside .auth-brand {
position: relative;
z-index: 1;
}
.auth-aside .brand-name {
color: #fff;
font-size: 22px;
}
.auth-aside-copy {
position: relative;
z-index: 1;
max-width: 28ch;
}
.auth-aside-copy h1 {
font-family: 'Belleza', Georgia, serif;
font-size: clamp(32px, 4vw, 44px);
line-height: 1.15;
font-weight: 400;
letter-spacing: -0.02em;
margin: 0 0 14px;
color: #fff;
}
.auth-aside-copy p {
margin: 0;
font-size: 15px;
line-height: 1.55;
color: rgba(255, 255, 255, 0.78);
}
.auth-aside-foot {
position: relative;
z-index: 1;
margin: 0;
font-size: 12px;
letter-spacing: 0.4px;
color: var(--brand-lime);
}
.auth-panel {
display: flex;
flex-direction: column;
justify-content: center;
padding: 32px clamp(20px, 5vw, 64px);
position: relative;
}
.auth-panel-top {
position: absolute;
top: 20px;
right: 20px;
left: 20px;
display: flex;
align-items: center;
justify-content: space-between;
}
.auth-panel-brand {
display: none;
}
.auth-brand {
display: flex;
align-items: center;
gap: 12px;
}
.auth-brand .brand-logo {
width: 42px;
height: 42px;
}
.auth-brand .brand-logo-lg {
width: 48px;
height: 48px;
border-radius: 12px;
}
.auth-brand .brand-name {
font-family: 'Belleza', Georgia, serif;
font-weight: 400;
letter-spacing: 0.2px;
}
.auth-card {
width: 100%;
max-width: 420px;
margin: 0 auto;
padding: 32px 28px 28px;
}
.auth-card .page-title {
margin: 0 0 8px;
font-size: 28px;
}
.auth-sub {
margin: 0 0 22px;
color: var(--text-2);
font-size: 14px;
line-height: 1.45;
}
.auth-card .form-field {
margin-bottom: 14px;
}
.auth-row-end {
display: flex;
justify-content: flex-end;
margin: -4px 0 4px;
}
.auth-foot {
max-width: 420px;
margin: 18px auto 0;
text-align: center;
font-size: 13.5px;
color: var(--text-2);
}
.auth-resend {
margin-top: 14px;
text-align: center;
}
.auth-theme-toggle {
width: 40px;
height: 40px;
border-radius: 10px;
display: grid;
place-items: center;
color: var(--text-2);
background: var(--bg-elev);
border: 1px solid var(--border);
transition: 0.15s;
}
.auth-theme-toggle:hover {
background: var(--bg-sunken);
color: var(--text);
}
.auth-theme-toggle svg {
width: 18px;
height: 18px;
fill: none;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
}
/* ---- Alerts ---- */
.alert {
padding: 11px 14px;
border-radius: 10px;
font-size: 13px;
line-height: 1.45;
margin-bottom: 16px;
border: 1px solid transparent;
}
.alert-danger {
background: var(--danger-soft);
color: var(--danger);
border-color: color-mix(in srgb, var(--danger) 25%, transparent);
}
.alert-success {
background: var(--success-soft);
color: var(--success);
border-color: color-mix(in srgb, var(--success) 25%, transparent);
}
/* ---- Password field ---- */
.pw-wrap {
position: relative;
display: flex;
align-items: center;
}
.pw-wrap input {
width: 100%;
padding-right: 44px;
}
.pw-toggle {
position: absolute;
right: 8px;
width: 34px;
height: 34px;
border-radius: 8px;
display: grid;
place-items: center;
color: var(--text-3);
transition: 0.15s;
}
.pw-toggle:hover {
color: var(--text);
background: var(--bg-sunken);
}
.pw-toggle svg {
width: 18px;
height: 18px;
fill: none;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
}
/* ---- OTP ---- */
.otp-row {
display: flex;
gap: 8px;
justify-content: space-between;
margin-bottom: 8px;
}
.otp-input {
width: 100%;
max-width: 52px;
aspect-ratio: 1;
text-align: center;
font-size: 20px;
font-weight: 700;
letter-spacing: 0;
border: 1px solid var(--border-strong);
border-radius: 10px;
background: var(--bg-elev);
color: var(--text);
outline: none;
transition: 0.15s;
}
.otp-input:focus {
border-color: var(--primary);
box-shadow: var(--ring);
}
.otp-input.err {
border-color: var(--danger);
}
/* ---- Countdown / spinner ---- */
.countdown {
margin: 8px 0 4px;
font-size: 13px;
color: var(--text-2);
text-align: center;
}
.countdown strong {
color: var(--text);
font-variant-numeric: tabular-nums;
}
.spinner {
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
}
.spinner-dot {
width: 14px;
height: 14px;
border-radius: 50%;
border: 2px solid color-mix(in srgb, var(--primary-fg) 35%, transparent);
border-top-color: var(--primary-fg);
animation: auth-spin 0.7s linear infinite;
}
@keyframes auth-spin {
to {
transform: rotate(360deg);
}
}
.btn-primary .spinner-dot {
border-color: color-mix(in srgb, var(--primary-fg) 35%, transparent);
border-top-color: var(--primary-fg);
}
/* ---- Responsive ---- */
@media (max-width: 860px) {
.auth-shell {
grid-template-columns: 1fr;
}
.auth-aside {
display: none;
}
.auth-panel-brand {
display: block;
}
.auth-panel-brand .brand-name {
color: var(--text);
}
.auth-panel {
padding-top: 88px;
min-height: 100dvh;
}
.auth-card {
box-shadow: none;
border: none;
background: transparent;
padding: 8px 0 24px;
}
}
@media (max-width: 420px) {
.otp-row {
gap: 6px;
}
.otp-input {
max-width: 46px;
font-size: 18px;
}
}