/* Techbeee HRMS — authentication pages */
:root {
    --a-bg: #05060f;
    --a-text: #e8eaff;
    --a-muted: #9aa0c3;
    --a-border: rgba(148, 163, 255, .16);
    --a-cyan: #22d3ee;
    --a-indigo: #6366f1;
    --a-violet: #a855f7;
    --a-grad: linear-gradient(120deg, var(--a-cyan), var(--a-indigo) 55%, var(--a-violet));
    --a-ease: cubic-bezier(.2, .8, .2, 1);
}

body.auth {
    margin: 0;
    min-height: 100vh;
    background: var(--a-bg) !important;
    color: var(--a-text);
    font: 400 15px/1.6 'Inter', 'Poppins', system-ui, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
.auth *, .auth *::before, .auth *::after { box-sizing: border-box; }
.auth a { text-decoration: none; }

/* ---------- background scene ---------- */
.auth-scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.auth-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: authOrb 18s ease-in-out infinite alternate; }
.auth-orb--a { width: 560px; height: 560px; background: #4338ca; top: -180px; left: -140px; }
.auth-orb--b { width: 480px; height: 480px; background: #0e7490; bottom: -200px; right: -120px; animation-delay: -6s; }
.auth-orb--c { width: 360px; height: 360px; background: #7e22ce; top: 45%; left: 40%; opacity: .25; animation-delay: -12s; }
@keyframes authOrb { to { transform: translate(80px, 60px) scale(1.15); } }
.auth-grid {
    position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%; opacity: .35;
    background-image: linear-gradient(rgba(99, 102, 241, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 102, 241, .35) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(500px) rotateX(70deg); transform-origin: center top;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
    animation: authGrid 3s linear infinite;
}
@keyframes authGrid { to { background-position: 0 60px; } }

/* ---------- layout ---------- */
.auth-shell { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; width: min(1180px, 100% - 32px); margin: 0 auto; padding: 40px 0; }

/* left: brand */
.auth-aside { padding: 20px 10px; animation: authUp 1s var(--a-ease) both; }
.auth-logo img { height: 58px; width: auto; display: block; }
.auth-eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin: 38px 0 18px; padding: .38rem .9rem; border-radius: 999px; border: 1px solid var(--a-border); background: rgba(255,255,255,.04); font: 600 .64rem 'Orbitron', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #c7d2fe; }
.auth-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--a-cyan); box-shadow: 0 0 12px var(--a-cyan); animation: authPulse 2s infinite; }
@keyframes authPulse { 50% { opacity: .35; } }
.auth-aside h1 { margin: 0 0 16px; font: 700 clamp(2rem, 3.6vw, 3rem)/1.08 'Space Grotesk', sans-serif; letter-spacing: -.02em; color: #fff; }
.auth-grad { background: var(--a-grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: authGradShift 6s linear infinite; }
@keyframes authGradShift { to { background-position: 200% center; } }
.auth-aside > p { max-width: 470px; color: var(--a-muted); font-size: 1rem; margin: 0 0 30px; }
.auth-features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
.auth-features li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--a-border); background: rgba(10, 12, 29, .55); backdrop-filter: blur(10px); font-size: .88rem; color: #dbe1ff; animation: authUp .9s var(--a-ease) both; }
.auth-features li:nth-child(2) { animation-delay: .08s; } .auth-features li:nth-child(3) { animation-delay: .16s; } .auth-features li:nth-child(4) { animation-delay: .24s; }
.auth-ficon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; color: var(--a-cyan); background: linear-gradient(140deg, rgba(34, 211, 238, .18), rgba(168, 85, 247, .18)); border: 1px solid var(--a-border); }
.auth-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.auth-copy { margin-top: 34px; font-size: .8rem; color: var(--a-muted); }

/* right: card */
.auth-panel { display: flex; justify-content: center; }
.auth-card {
    position: relative; width: 100%; max-width: 460px; padding: 38px 36px 32px; border-radius: 26px;
    background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
    border: 1px solid var(--a-border); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
    box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), 0 0 80px -30px rgba(99, 102, 241, .55);
    animation: authCard 1s .1s var(--a-ease) both;
}
.auth-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--a-grad); opacity: .55; pointer-events: none; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@keyframes authCard { from { opacity: 0; transform: translateY(30px) scale(.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes authUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; margin-bottom: 28px; border-radius: 14px; background: rgba(5, 6, 15, .6); border: 1px solid var(--a-border); }
.auth-tabs a { position: relative; z-index: 1; padding: .6rem; border-radius: 10px; text-align: center; font: 600 .86rem 'Space Grotesk', sans-serif; color: var(--a-muted); transition: color .3s; }
.auth-tabs a:hover { color: #fff; }
.auth-tabs a.is-active { color: #fff; background: var(--a-grad); box-shadow: 0 8px 24px -8px rgba(99, 102, 241, .8); }

.auth-card h2 { margin: 0 0 6px; font: 700 1.6rem/1.2 'Space Grotesk', sans-serif; color: #fff; letter-spacing: -.01em; }
.auth-sub { margin: 0 0 26px; color: var(--a-muted); font-size: .9rem; }
.auth-note { display: flex; gap: 12px; margin: -6px 0 22px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(34, 211, 238, .28); background: linear-gradient(120deg, rgba(34, 211, 238, .08), rgba(168, 85, 247, .05)); font-size: .84rem; color: #cfd6ff; }
.auth-note .auth-ico { color: var(--a-cyan); margin-top: 2px; }
.auth-note a { color: var(--a-cyan); font-weight: 600; white-space: nowrap; }

.auth-field { margin-bottom: 18px; }
.auth-field label { display: block; margin-bottom: 8px; font: 600 .8rem 'Space Grotesk', sans-serif; letter-spacing: .02em; color: #c7d2fe; }
.auth-input { position: relative; display: flex; align-items: center; }
.auth-input > .auth-ico { position: absolute; left: 15px; color: var(--a-muted); transition: color .3s; pointer-events: none; }
.auth .auth-input input {
    width: 100%; height: 52px; padding: 0 48px 0 46px; border-radius: 14px; border: 1px solid var(--a-border) !important;
    background: rgba(5, 6, 15, .6) !important; color: var(--a-text) !important; font: 500 .95rem 'Inter', sans-serif; outline: none;
    transition: border-color .3s, box-shadow .3s, background .3s;
}
.auth .auth-input input::placeholder { color: #6b7194; }
.auth .auth-input input:focus { border-color: var(--a-cyan) !important; box-shadow: 0 0 0 4px rgba(34, 211, 238, .14); background: rgba(5, 6, 15, .8) !important; }
.auth-input:focus-within > .auth-ico { color: var(--a-cyan); }
.auth .auth-input input:-webkit-autofill { -webkit-text-fill-color: var(--a-text); -webkit-box-shadow: 0 0 0 40px #0b0d22 inset; transition: background-color 9999s; }
.auth-eye { position: absolute; right: 8px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--a-muted); cursor: pointer; transition: color .3s, background .3s; }
.auth-eye:hover { color: #fff; background: rgba(255,255,255,.06); }
.auth-eye .is-hide { display: none; } .auth-eye.is-on .is-show { display: none; } .auth-eye.is-on .is-hide { display: block; }

.auth-row { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 22px; font-size: .84rem; }
.auth-row a, .auth-link { color: var(--a-cyan); font-weight: 600; }
.auth-row a:hover, .auth-link:hover { text-decoration: underline; }

.auth-btn {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; height: 52px;
    border: 0; border-radius: 14px; cursor: pointer; color: #fff; font: 600 .95rem 'Space Grotesk', sans-serif; letter-spacing: .01em;
    background: var(--a-grad); background-size: 160% auto; box-shadow: 0 14px 40px -12px rgba(99, 102, 241, .85), inset 0 1px 0 rgba(255,255,255,.25);
    transition: background-position .5s, transform .3s var(--a-ease), box-shadow .4s;
}
.auth-btn:hover { background-position: right center; transform: translateY(-2px); box-shadow: 0 18px 50px -10px rgba(34, 211, 238, .6); color: #fff; }
.auth-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); background-size: 250% 100%; background-position: 150% 0; transition: background-position .9s var(--a-ease); }
.auth-btn:hover::after { background-position: -50% 0; }
.auth-btn .auth-ico { transition: transform .3s var(--a-ease); } .auth-btn:hover .auth-ico { transform: translateX(4px); }
.auth-spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: authSpin .7s linear infinite; }
.auth-btn.is-loading { pointer-events: none; opacity: .9; }
.auth-btn.is-loading .auth-spin { display: block; } .auth-btn.is-loading .auth-ico { display: none; }
@keyframes authSpin { to { transform: rotate(360deg); } }
.auth-ghost { display: block; margin-top: 14px; padding: .8rem; border-radius: 14px; border: 1px solid var(--a-border); text-align: center; color: #dbe1ff; font: 600 .88rem 'Space Grotesk', sans-serif; transition: border-color .3s, background .3s; }
.auth-ghost:hover { color: #fff; border-color: rgba(34, 211, 238, .5); background: rgba(34, 211, 238, .06); }

.auth-secure { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: 22px; font-size: .76rem; color: var(--a-muted); }
.auth-secure .auth-ico { width: 14px; height: 14px; color: #34d399; }
.auth-msg { text-align: center; padding: 10px 0 6px; }
.auth-msg .auth-ficon { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 18px; } .auth-msg .auth-ficon .auth-ico { width: 26px; height: 26px; }

/* SweetAlert2 dark skin */
.auth .swal2-popup { background: #0f1230 !important; color: var(--a-text) !important; border: 1px solid var(--a-border); border-radius: 22px !important; }
.auth .swal2-title { color: #fff !important; font-family: 'Space Grotesk', sans-serif !important; }
.auth .swal2-html-container { color: var(--a-muted) !important; }
.auth .swal2-styled.swal2-confirm { background: var(--a-grad) !important; border-radius: 12px !important; box-shadow: none !important; }
.auth .swal2-icon.swal2-error, .auth .swal2-icon.swal2-success { border-color: currentColor; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .auth-shell { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 0 40px; }
    .auth-aside { text-align: center; padding: 0; }
    .auth-logo img { margin: 0 auto; height: 50px; }
    .auth-eyebrow { margin: 22px 0 14px; }
    .auth-aside h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .auth-aside > p { margin: 0 auto 4px; font-size: .92rem; }
    .auth-features, .auth-copy { display: none; }
    .auth-panel { order: 2; }
}
@media (max-width: 480px) {
    .auth-card { padding: 28px 20px 24px; border-radius: 22px; }
    .auth-card h2 { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
    .auth *, .auth *::before, .auth *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
