/* =====================================================================
   MTECH SYSTEMS ERP - login page theme  (public/css/mtech-auth.css)
   Active only when <body> has the .mt-auth class (login page only; set in
   layouts/auth2.blade.php). Remove the <link> there to undo.
   ===================================================================== */
@media screen {

html.mt-auth-html { background: #070d1a !important; min-height: 100%; }
body.mt-auth {
    height: auto !important;
    min-height: 100vh;
    background: #070d1a !important;
    color: #e6edf8;
    position: relative;
    overflow-x: hidden;
}

/* animated aurora + faint grid, fixed behind everything */
body.mt-auth::before {
    content: '';
    position: fixed; inset: -12%;
    z-index: 0; pointer-events: none;
    background:
        radial-gradient(620px 420px at 14% 22%, color-mix(in srgb, var(--theme-700, #004EEB) 62%, transparent), transparent 70%),
        radial-gradient(540px 400px at 86% 78%, rgba(34, 211, 238, .30), transparent 70%),
        radial-gradient(520px 380px at 72% 8%, rgba(139, 92, 246, .28), transparent 70%);
    animation: mtDrift 22s ease-in-out infinite alternate;
}
body.mt-auth::after {
    content: '';
    position: fixed; inset: 0;
    z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 78%);
    mask-image: radial-gradient(ellipse at center, #000 25%, transparent 78%);
}
@keyframes mtDrift {
    0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
    100% { transform: translate3d(2%, 2%, 0) scale(1.1); }
}

body.mt-auth .container-fluid { position: relative; z-index: 1; }
body.mt-auth .right-col { background: transparent !important; min-height: 100vh; box-sizing: border-box; }
body.mt-auth img[alt="lock"] { filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45)); }

/* ---------- Glass card (class added in auth/login.blade.php) ---------- */
body.mt-auth .mt-login-card {
    max-width: 440px;
    margin: 3vh auto 0;
    padding: 40px 34px 30px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 26px;
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 34px 90px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .14);
    animation: mtAuthRise .6s cubic-bezier(.2, .7, .2, 1) backwards;
}
@keyframes mtAuthRise { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: none; } }

/* heading + sub heading */
body.mt-auth .mt-login-card h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.02em;
    background: linear-gradient(90deg, #ffffff 30%, var(--mt-accent, #9db8ff));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.mt-auth .mt-login-card h2 { margin: 4px 0 0; color: #9fb0cf; font-size: 14px; font-weight: 500; text-align: center; }

/* ---------- Fields ---------- */
body.mt-auth .mt-login-card .tw-dw-label span { color: #c9d4ea; }
body.mt-auth .mt-login-card .form-group { margin-bottom: 18px; }
body.mt-auth .mt-login-card input[type="text"],
body.mt-auth .mt-login-card input[type="password"] {
    height: 52px;
    padding-left: 18px;
    font-size: 15px;
    color: #ffffff;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 14px;
    box-shadow: none;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
body.mt-auth .mt-login-card #password { padding-right: 52px; }
body.mt-auth .mt-login-card input::placeholder { color: #8b9ab8; }
body.mt-auth .mt-login-card input[type="text"]:focus,
body.mt-auth .mt-login-card input[type="password"]:focus {
    background: rgba(255, 255, 255, .11);
    border-color: var(--mt-accent, #9db8ff);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-700, #004EEB) 32%, transparent);
}
body.mt-auth .mt-login-card input:-webkit-autofill,
body.mt-auth .mt-login-card input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    caret-color: #ffffff;
    box-shadow: 0 0 0 1000px #131c33 inset !important;
    border-radius: 14px;
}
/* show / hide password eye (its svg has a hard-coded black stroke) */
body.mt-auth .mt-login-card #show_hide_icon { background: transparent; border: 0; padding: 4px; }
body.mt-auth .mt-login-card #show_hide_icon svg { stroke: #8b9ab8; transition: stroke .15s ease; }
body.mt-auth .mt-login-card #show_hide_icon:hover svg { stroke: #ffffff; }

body.mt-auth .mt-login-card .has-error input { border-color: #f87171; }
body.mt-auth .mt-login-card .help-block,
body.mt-auth .mt-login-card .has-error .help-block { color: #fca5a5; font-weight: 500; }

/* remember me */
body.mt-auth .mt-login-card .tw-dw-checkbox { border-color: rgba(255, 255, 255, .38); }
body.mt-auth .mt-login-card .tw-dw-cursor-pointer span { color: #c9d4ea; }

/* ---------- Button ---------- */
body.mt-auth .mt-login-card button[type="submit"] {
    height: 52px;
    margin-top: 6px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: .02em;
    background-color: var(--theme-700, #004EEB);
    background-image: linear-gradient(135deg, var(--theme-700, #004EEB), color-mix(in srgb, var(--theme-700, #004EEB) 50%, #22d3ee));
    box-shadow: 0 14px 34px color-mix(in srgb, var(--theme-700, #004EEB) 48%, transparent);
    transition: transform .15s ease, filter .2s ease, box-shadow .2s ease;
}
body.mt-auth .mt-login-card button[type="submit"]:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 18px 40px color-mix(in srgb, var(--theme-700, #004EEB) 58%, transparent);
}
body.mt-auth .mt-login-card button[type="submit"]:active { transform: scale(.98); }

/* ---------- Links ---------- */
/* forgot password + register now: gradient text, lighter so it reads on dark glass */
body.mt-auth .mt-login-card .tw-bg-clip-text {
    background-image: linear-gradient(90deg, #a5b4fc, #7dd3fc);
}
body.mt-auth .mt-login-card .tw-bg-clip-text:hover { filter: brightness(1.15); }
body.mt-auth .mt-login-card a.tw-text-gray-500 { color: #9fb0cf; }

@media (max-width: 480px) {
    body.mt-auth .mt-login-card { padding: 32px 22px 24px; border-radius: 22px; }
    body.mt-auth .mt-login-card h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    body.mt-auth::before, body.mt-auth .mt-login-card { animation: none; }
}

/* ---------- Public home / landing (welcome.blade.php) ---------- */
.mt-spot {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 32%),
        color-mix(in srgb, var(--theme-700, #004EEB) 30%, transparent), transparent 70%);
}
.mt-hero { position: relative; z-index: 1; max-width: 980px; margin: 2vh auto 0; text-align: center; padding: 0 12px; }
.mt-hero-title {
    margin: 0;
    font-size: clamp(38px, 8vw, 92px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.04;
    background: linear-gradient(100deg, #ffffff 15%, var(--mt-accent, #9db8ff) 45%, #7dd3fc 60%, #ffffff 85%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: mtShine 7s ease-in-out infinite alternate, mtAuthRise .7s cubic-bezier(.2, .7, .2, 1) backwards;
    filter: drop-shadow(0 12px 40px color-mix(in srgb, var(--theme-700, #004EEB) 45%, transparent));
}
@keyframes mtShine { to { background-position: 100% 0; } }
.mt-hero-sub { margin: 22px 0 0; animation: mtAuthRise .7s .1s cubic-bezier(.2, .7, .2, 1) backwards; }
.mt-hero-sub span {
    display: inline-block; padding: 9px 22px;
    font-size: 13px; font-weight: 600; letter-spacing: .2em; color: #b4c2de;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.mt-hero-cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; animation: mtAuthRise .7s .2s cubic-bezier(.2, .7, .2, 1) backwards; }
.mt-btn {
    display: inline-flex; align-items: center; gap: 10px;
    height: 54px; padding: 0 30px; border-radius: 16px;
    font-size: 16px; font-weight: 700; letter-spacing: .02em; text-decoration: none !important;
    transition: transform .15s ease, filter .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.mt-btn:hover { transform: translateY(-3px); }
.mt-btn-primary {
    color: #ffffff !important;
    background-image: linear-gradient(135deg, var(--theme-700, #004EEB), color-mix(in srgb, var(--theme-700, #004EEB) 50%, #22d3ee));
    box-shadow: 0 16px 40px color-mix(in srgb, var(--theme-700, #004EEB) 50%, transparent);
}
.mt-btn-primary:hover { filter: brightness(1.1); box-shadow: 0 22px 48px color-mix(in srgb, var(--theme-700, #004EEB) 60%, transparent); }
.mt-btn-ghost { color: #e6edf8 !important; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .22); }
.mt-btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.mt-hero-tiles {
    margin: 44px auto 0; max-width: 860px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px;
}
.mt-tile {
    padding: 26px 16px 22px; border-radius: 22px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .13);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
    color: #c9d4ea; font-weight: 600; font-size: 14px;
    animation: mtAuthRise .7s cubic-bezier(.2, .7, .2, 1) backwards;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.mt-tile:nth-child(1) { animation-delay: .30s; }
.mt-tile:nth-child(2) { animation-delay: .38s; }
.mt-tile:nth-child(3) { animation-delay: .46s; }
.mt-tile:nth-child(4) { animation-delay: .54s; }
.mt-tile:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, .10);
    border-color: var(--mt-accent, #9db8ff);
    box-shadow: 0 20px 44px rgba(0, 0, 0, .35), 0 0 0 1px color-mix(in srgb, var(--theme-700, #004EEB) 40%, transparent);
}
.mt-tile svg { display: block; width: 34px; height: 34px; margin: 0 auto 12px; color: var(--mt-accent, #9db8ff); }
@media (max-width: 480px) {
    .mt-hero { margin-top: 4vh; }
    .mt-hero-sub span { letter-spacing: .1em; font-size: 11px; padding: 8px 16px; }
    .mt-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .mt-hero-title, .mt-hero-sub, .mt-hero-cta, .mt-tile { animation: none; }
}

} /* end @media screen */
