/* ==========================================================================
   Shree Envitech – sign-in / change-password screens
   ========================================================================== */
:root { --brand: #0e6386; --brand-700: #083f58; --aqua: #4bc0b6; --leaf: #6e9a3f; --red: #dc4c4c; --text: #1d2b34; --muted: #6b7c87; --border: #e2eaee; }
[x-cloak] { display: none !important; }
* { box-sizing: border-box; }
body.auth-body {
    margin: 0; min-height: 100vh; font-family: Inter, system-ui, sans-serif; color: var(--text); overflow-x: hidden;
    background: linear-gradient(135deg, #083f58 0%, #0e6386 38%, #1b8e94 70%, #5aa65a 100%);
    background-size: 220% 220%; animation: bg-shift 18s ease infinite;
}
@keyframes bg-shift { 0%, 100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }
h1, h2 { font-family: Poppins, Inter, sans-serif; }
a { color: var(--brand); text-decoration: none; }

/* animated icon background */
.auth-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.auth-bg i { position: absolute; bottom: -80px; color: rgba(255, 255, 255, .14); animation: rise linear infinite; will-change: transform; }
.auth-bg i:nth-child(1)  { left: 4%;  font-size: 2.2rem; animation-duration: 19s; animation-delay: 0s; }
.auth-bg i:nth-child(2)  { left: 12%; font-size: 1.4rem; animation-duration: 23s; animation-delay: -6s; }
.auth-bg i:nth-child(3)  { left: 20%; font-size: 3rem;   animation-duration: 27s; animation-delay: -12s; }
.auth-bg i:nth-child(4)  { left: 28%; font-size: 1.6rem; animation-duration: 17s; animation-delay: -3s; }
.auth-bg i:nth-child(5)  { left: 36%; font-size: 2.4rem; animation-duration: 25s; animation-delay: -15s; }
.auth-bg i:nth-child(6)  { left: 44%; font-size: 3.4rem; animation-duration: 30s; animation-delay: -8s; }
.auth-bg i:nth-child(7)  { left: 52%; font-size: 2rem;   animation-duration: 21s; animation-delay: -18s; }
.auth-bg i:nth-child(8)  { left: 60%; font-size: 1.5rem; animation-duration: 18s; animation-delay: -10s; }
.auth-bg i:nth-child(9)  { left: 68%; font-size: 2.6rem; animation-duration: 26s; animation-delay: -4s; }
.auth-bg i:nth-child(10) { left: 76%; font-size: 3rem;   animation-duration: 29s; animation-delay: -20s; }
.auth-bg i:nth-child(11) { left: 84%; font-size: 1.8rem; animation-duration: 20s; animation-delay: -13s; }
.auth-bg i:nth-child(12) { left: 92%; font-size: 2.3rem; animation-duration: 24s; animation-delay: -7s; }
.auth-bg i:nth-child(13) { left: 8%;  font-size: 2.6rem; animation-duration: 28s; animation-delay: -22s; }
.auth-bg i:nth-child(14) { left: 32%; font-size: 1.9rem; animation-duration: 22s; animation-delay: -16s; }
.auth-bg i:nth-child(15) { left: 56%; font-size: 1.3rem; animation-duration: 16s; animation-delay: -2s; }
.auth-bg i:nth-child(16) { left: 72%; font-size: 3.6rem; animation-duration: 32s; animation-delay: -25s; }
.auth-bg i:nth-child(17) { left: 88%; font-size: 1.5rem; animation-duration: 19s; animation-delay: -11s; }
.auth-bg i:nth-child(18) { left: 96%; font-size: 2rem;   animation-duration: 23s; animation-delay: -19s; }
@keyframes rise {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; animation: drift 16s ease-in-out infinite alternate; }
.blob.b1 { width: 420px; height: 420px; background: #4bc0b6; top: -120px; left: -100px; }
.blob.b2 { width: 360px; height: 360px; background: #8bc34a; bottom: -120px; right: -80px; animation-delay: -5s; }
.blob.b3 { width: 260px; height: 260px; background: #0e6386; top: 40%; left: 45%; animation-delay: -9s; }
@keyframes drift { to { transform: translate(40px, -30px) scale(1.12); } }

/* layout */
.auth-wrap {
    position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 1fr;
    align-items: center; justify-items: center; gap: 40px; padding: 32px 18px; max-width: 1180px; margin: 0 auto;
}
@media (min-width: 992px) { .auth-wrap { grid-template-columns: 1.1fr .9fr; padding: 40px; } .auth-wrap-single { grid-template-columns: 1fr; } }
.auth-hero { color: #fff; max-width: 520px; animation: fade-up .7s ease both; }
.hero-badge { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); font-size: .8rem; font-weight: 500; backdrop-filter: blur(6px); }
.auth-hero h1 { font-size: 2.6rem; line-height: 1.18; font-weight: 600; margin: 22px 0 14px; }
.auth-hero h1 span { color: #c9f2a9; }
.auth-hero p { font-size: 1.05rem; opacity: .88; line-height: 1.6; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.hero-points li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.hero-points i { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .16); }

/* card */
.auth-card {
    width: 100%; max-width: 430px; background: rgba(255, 255, 255, .96); border-radius: 22px; padding: 34px 32px 26px;
    box-shadow: 0 30px 60px -20px rgba(4, 30, 44, .55), 0 0 0 1px rgba(255, 255, 255, .5) inset;
    backdrop-filter: blur(16px); animation: fade-up .6s .1s ease both;
}
@media (max-width: 480px) { .auth-card { padding: 28px 20px 22px; border-radius: 18px; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.auth-logo { display: block; width: 230px; max-width: 80%; height: auto; margin: 0 auto 22px; }
.auth-card h2 { font-size: 1.4rem; font-weight: 600; margin: 0; text-align: center; }
.auth-sub { color: var(--muted); text-align: center; margin: 6px 0 24px; font-size: .92rem; }
.wave { display: inline-block; animation: wave 2.4s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }
.text-brand { color: var(--brand); }

.auth-label { display: block; font-size: .82rem; font-weight: 600; color: #3c4d57; margin: 14px 0 7px; }
.auth-field { position: relative; }
.auth-field > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #9db0b9; transition: color .15s; }
.auth-field:focus-within > i { color: var(--brand); }
.auth-input {
    width: 100%; height: 48px; border-radius: 12px; border: 1.5px solid var(--border); background: #f7fafb;
    padding: 0 46px 0 44px; font: inherit; font-size: .93rem; color: var(--text); outline: none; transition: .18s;
}
.auth-input:focus { border-color: var(--aqua); background: #fff; box-shadow: 0 0 0 4px rgba(75, 192, 182, .2); }
.auth-input.input-validation-error { border-color: var(--red); background: #fffafa; }
.auth-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: #8aa0ab; border-radius: 9px; cursor: pointer; }
.auth-eye:hover { color: var(--brand); background: #eef6f8; }
.auth-error { display: block; color: var(--red); font-size: .78rem; margin-top: 5px; }
.field-validation-valid { display: none; }
.auth-alert { background: #fdecec; color: #a12f2f; border: 1px solid #f6caca; border-radius: 12px; padding: 10px 14px; font-size: .85rem; margin-bottom: 6px; }
.auth-alert ul { margin: 0; padding-left: 0; list-style: none; }
.auth-alert li::before { content: "\f06a"; font: var(--fa-font-solid); margin-right: 8px; }
.auth-alert.validation-summary-valid { display: none; }
.auth-info { background: #e7f2f7; color: var(--brand-700); border-radius: 12px; padding: 10px 14px; font-size: .85rem; margin: 14px 0 6px; display: flex; gap: 10px; align-items: flex-start; }
.auth-info i { margin-top: 3px; }
.auth-check { display: flex; align-items: center; gap: 9px; margin: 16px 0 4px; font-size: .86rem; color: #4a5c66; cursor: pointer; user-select: none; }
.auth-check input { width: 17px; height: 17px; accent-color: var(--brand); }
.auth-btn {
    width: 100%; height: 50px; margin-top: 20px; border: 0; border-radius: 12px; color: #fff; font: inherit; font-weight: 600; font-size: .98rem; cursor: pointer;
    background: linear-gradient(135deg, #0e6386 0%, #138a9a 55%, #4bc0b6 100%); background-size: 160% 160%;
    box-shadow: 0 14px 26px -14px rgba(14, 99, 134, .95); transition: .25s ease;
}
.auth-btn:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 18px 30px -14px rgba(14, 99, 134, .95); }
.auth-btn:disabled { opacity: .8; cursor: progress; transform: none; }
.auth-btn i { margin-right: 6px; }
.auth-foot { text-align: center; color: #9aaab3; font-size: .75rem; margin: 22px 0 0; }
.auth-links { font-size: .85rem; display: flex; justify-content: space-between; margin-top: 16px; }
.auth-links form { margin-left: auto; }
.link-btn { border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.link-btn:hover { color: var(--red); }

.pw-meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pw-bar { flex: 1; height: 6px; border-radius: 999px; background: #eef3f5; overflow: hidden; }
.pw-bar span { display: block; height: 100%; border-radius: inherit; transition: width .3s, background .3s; }
.pw-bar .s0, .pw-bar .s1 { background: var(--red); }
.pw-bar .s2 { background: #e8a317; }
.pw-bar .s3 { background: #4bc0b6; }
.pw-bar .s4 { background: var(--leaf); }
.pw-meter small { font-size: .74rem; color: var(--muted); width: 58px; text-align: right; }
.pw-rules { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 4px; font-size: .78rem; color: #9aaab3; }
.pw-rules li { transition: color .2s; }
.pw-rules li.ok { color: var(--leaf); }

/* status pages for anonymous users */
.auth-status { position: relative; z-index: 1; color: #fff; text-align: center; padding: 18vh 20px; }
.auth-status .empty-icon { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .15); font-size: 2rem; }
.auth-status .btn { display: inline-flex; gap: 8px; align-items: center; background: #fff; color: var(--brand); padding: 10px 18px; border-radius: 10px; font-weight: 600; }
.auth-status .text-muted { color: rgba(255, 255, 255, .8); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
