/*
 * DASGROUPS EMS — 3D glassmorphism for the login, forgot-password and reset pages.
 * Loaded after style.css. The animated scene (gradient, glowing orbs, floating
 * 3D shapes) is added by glass-3d.js; the existing page markup is restyled here.
 */
:root {
    --g-bg-1: #0b1640;
    --g-bg-2: #1d3fa8;
    --g-bg-3: #3a7bff;
    --g-glass: rgba(255, 255, 255, .12);
    --g-glass-2: rgba(255, 255, 255, .2);
    --g-line: rgba(255, 255, 255, .28);
    --g-text: #ffffff;
    --g-muted: rgba(235, 242, 255, .78);
    --g-accent: #5ee1ff;
    --g-accent-2: #8b6bff;
    --g-pink: #ff7ad9;
}

html, body { min-height: 100%; }
body.g3d {
    margin: 0;
    color: var(--g-text);
    font-family: 'Poppins', 'Signika', sans-serif;
    background: radial-gradient(1200px 800px at 15% 10%, #2a5bff 0%, transparent 60%),
                radial-gradient(900px 700px at 90% 90%, #7b3dff 0%, transparent 55%),
                linear-gradient(135deg, var(--g-bg-1) 0%, #122a78 45%, var(--g-bg-2) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}
/* the old photo slider is not used on the glass pages */
body.g3d .backstretch { display: none !important; }

/* ---------------- animated scene ---------------- */
.g3d-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    perspective: 900px;
}
.g3d-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .7;
    animation: g3d-drift 18s ease-in-out infinite alternate;
}
.g3d-orb.o1 { width: 460px; height: 460px; left: -120px; top: -100px; background: #3ad0ff; }
.g3d-orb.o2 { width: 520px; height: 520px; right: -160px; bottom: -180px; background: #8b5cff; animation-delay: -6s; }
.g3d-orb.o3 { width: 300px; height: 300px; left: 45%; top: 60%; background: #ff6bd5; opacity: .45; animation-delay: -11s; }
@keyframes g3d-drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.12); }
    100% { transform: translate(-40px, 70px) scale(.95); }
}
/* soft grid floor for depth */
.g3d-grid {
    position: absolute;
    left: -50%; right: -50%; bottom: -30%;
    height: 70%;
    background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: rotateX(72deg);
    transform-origin: center top;
    mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 85%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 85%);
    animation: g3d-floor 8s linear infinite;
}
@keyframes g3d-floor { to { background-position: 0 60px, 0 0; } }

/* floating 3D shapes */
.g3d-shape { position: absolute; transform-style: preserve-3d; animation: g3d-float 9s ease-in-out infinite; }
@keyframes g3d-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -26px; }
}
.g3d-cube { width: 70px; height: 70px; top: 14%; right: 12%; }
.g3d-cube .spin { position: absolute; inset: 0; transform-style: preserve-3d; animation: g3d-spin 14s linear infinite; }
.g3d-cube .f {
    position: absolute; inset: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,.06));
    border: 1px solid rgba(255,255,255,.45);
    box-shadow: inset 0 0 18px rgba(255,255,255,.25);
    backdrop-filter: blur(4px);
}
.g3d-cube .f1 { transform: translateZ(35px); }
.g3d-cube .f2 { transform: rotateY(180deg) translateZ(35px); }
.g3d-cube .f3 { transform: rotateY(90deg) translateZ(35px); }
.g3d-cube .f4 { transform: rotateY(-90deg) translateZ(35px); }
.g3d-cube .f5 { transform: rotateX(90deg) translateZ(35px); }
.g3d-cube .f6 { transform: rotateX(-90deg) translateZ(35px); }
@keyframes g3d-spin { to { transform: rotateX(360deg) rotateY(720deg); } }

.g3d-sphere {
    width: 110px; height: 110px; left: 7%; bottom: 14%;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #ffffff 0%, #9be7ff 18%, #3a7bff 55%, #1b2f8a 100%);
    box-shadow: 0 30px 60px rgba(10, 20, 80, .55), inset -12px -16px 30px rgba(0,0,0,.25);
    animation-duration: 11s;
}
.g3d-ring {
    width: 150px; height: 150px; left: 10%; top: 12%;
    border-radius: 50%;
    border: 14px solid transparent;
    background: linear-gradient(135deg, #ff9be9, #8b6bff, #5ee1ff) border-box;
    -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: g3d-ring 12s ease-in-out infinite;
    opacity: .9;
}
@keyframes g3d-ring {
    0%, 100% { transform: rotateX(62deg) rotateZ(0deg) translateY(0); }
    50% { transform: rotateX(62deg) rotateZ(180deg) translateY(-20px); }
}
.g3d-pill {
    width: 46px; height: 120px; right: 9%; bottom: 12%;
    border-radius: 999px;
    background: linear-gradient(160deg, #ffd36b, #ff7ad9 60%, #8b6bff);
    box-shadow: 0 24px 50px rgba(60, 10, 90, .45), inset -8px -10px 18px rgba(0,0,0,.18), inset 8px 10px 18px rgba(255,255,255,.35);
    transform: rotate(32deg);
    animation-duration: 10s;
    animation-delay: -4s;
}

/* ---------------- layout ---------------- */
body.g3d .auth-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}
body.g3d .auth-main > .container { width: 100%; max-width: 1040px; padding: 0; }
body.g3d .slideIn {
    display: flex;
    align-items: stretch;
    border-radius: 30px;
    background: var(--g-glass);
    border: 1px solid var(--g-line);
    box-shadow: 0 40px 90px rgba(5, 10, 50, .55), inset 0 1px 0 rgba(255,255,255,.35);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    overflow: hidden;
    transform-style: preserve-3d;
    animation: g3d-enter .9s cubic-bezier(.2, .8, .2, 1) both;
    will-change: transform;
}
@keyframes g3d-enter {
    from { opacity: 0; transform: perspective(1200px) rotateX(14deg) translateY(50px) scale(.96); }
    to { opacity: 1; transform: perspective(1200px) rotateX(0) translateY(0) scale(1); }
}
body.g3d .slideIn > [class*="col-"] {
    float: none;
    margin: 0 !important;
    padding: 0;
    width: auto;
}
body.g3d .slideIn > [class*="col-"] { display: flex; flex-direction: column; }
body.g3d .slideIn > [class*="col-"] > .image-area,
body.g3d .slideIn > [class*="col-"] > .sign-area { flex: 1 1 auto; height: auto; width: 100%; }
body.g3d .slideIn > .fitxt-center { flex: 0 0 42%; }
body.g3d .slideIn > .fitxt-center + [class*="col-"] { flex: 1 1 auto; }

/* ---------------- left: brand panel ---------------- */
body.g3d .image-area {
    min-height: 520px;
    border-radius: 0;
    background: linear-gradient(160deg, rgba(94, 225, 255, .28), rgba(139, 107, 255, .26) 55%, rgba(255, 122, 217, .2));
    border-right: 1px solid var(--g-line);
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
}
body.g3d .image-area::before, body.g3d .image-area::after { display: none; }
body.g3d .image-area .content { position: static; transform: none; width: 100%; height: auto; padding: 0; }
body.g3d .image-area .image-hader h2 {
    color: #fff;
    font-weight: 700;
    font-size: 30px;
    letter-spacing: .5px;
    margin: 0 0 22px;
    text-shadow: 0 6px 20px rgba(0, 0, 40, .35);
}
body.g3d .image-area .image-hader h2::before { display: none; }
/* the logo sits on a floating white glass tile */
body.g3d .img-hol-p {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 24px;
    margin-bottom: 22px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 40px rgba(5, 10, 60, .45), inset 0 -4px 0 rgba(0,0,0,.06);
    animation: g3d-float 6s ease-in-out infinite;
}
body.g3d .img-hol-p img { max-width: 200px; height: auto; max-height: 70px; }
body.g3d .content .address p { color: var(--g-muted); font-size: 14px; line-height: 1.6; }

/* feature chips (login page) */
.g3d-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 6px; text-align: left; }
.g3d-feat {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    font-size: 13px;
    color: #fff;
    transition: transform .25s cubic-bezier(.2,.9,.3,1.4), background .25s;
}
.g3d-feat:hover { transform: translateY(-3px) scale(1.03); background: rgba(255,255,255,.2); }
.g3d-feat i {
    width: 32px; height: 32px; flex: 0 0 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 6px 14px rgba(0,0,0,.25), inset 0 -3px 0 rgba(0,0,0,.18), inset 0 2px 0 rgba(255,255,255,.35);
}
.g3d-feat:nth-child(1) i { background: linear-gradient(145deg, #4fd1ff, #2a6bff); }
.g3d-feat:nth-child(2) i { background: linear-gradient(145deg, #7dffb0, #13a86b); }
.g3d-feat:nth-child(3) i { background: linear-gradient(145deg, #ffd36b, #ff8a3d); }
.g3d-feat:nth-child(4) i { background: linear-gradient(145deg, #ff9be9, #8b5cff); }

/* social buttons */
body.g3d .f-social-links { margin-top: 18px; }
body.g3d .f-social-links a span {
    width: 40px; height: 40px; line-height: 40px;
    margin: 0 4px;
    border-radius: 12px;
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    box-shadow: 0 8px 18px rgba(0,0,0,.2);
    transition: transform .25s cubic-bezier(.2,.9,.3,1.5), background .25s;
}
body.g3d .f-social-links a span::after { display: none; }
body.g3d .f-social-links a:hover span { transform: translateY(-4px) rotate(-6deg); background: rgba(255,255,255,.3); }

/* ---------------- right: form ---------------- */
body.g3d .sign-area {
    min-height: 520px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 50px 54px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
body.g3d .sign-area::before { display: none; }
body.g3d .sign-area { margin: 0; }
body.g3d .sign-area .sign-hader { text-align: left; margin: 0 0 28px; padding: 0; }
body.g3d .sign-area .sign-hader img { display: none; }
body.g3d .sign-area .sign-hader h2 {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
}
.g3d-sub { color: var(--g-muted); font-size: 14px; margin-top: 6px; }

body.g3d .input-group-icon { position: relative; display: block; width: 100%; }
body.g3d .input-group-icon .input-group-addon {
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 52px;
    background: transparent;
    border: 0;
    z-index: 3;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
}
body.g3d .input-group-icon .input-group-addon span.icon {
    position: static;
    width: 32px; height: 32px; line-height: 32px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(145deg, var(--g-accent), var(--g-accent-2));
    box-shadow: 0 6px 14px rgba(20, 30, 120, .35), inset 0 -2px 0 rgba(0,0,0,.18);
    font-size: 13px;
}
body.g3d input.form-control,
body.g3d .input-group-icon input.form-control {
    height: 54px;
    width: 100%;
    float: none;
    padding: 0 52px 0 60px !important;
    border-radius: 16px !important;
    color: #fff;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.26);
    box-shadow: inset 0 2px 6px rgba(0,0,0,.15);
    font-size: 15px;
    transition: border-color .25s, background .25s, box-shadow .25s, transform .2s;
}
body.g3d input.form-control::placeholder { color: rgba(235, 242, 255, .65); }
body.g3d input.form-control:focus {
    outline: 0;
    background: rgba(255,255,255,.16);
    border-color: var(--g-accent);
    box-shadow: 0 0 0 4px rgba(94, 225, 255, .22), 0 10px 24px rgba(0,0,0,.2);
    transform: translateY(-1px);
}
body.g3d input:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px rgba(40, 70, 170, .9) inset;
    caret-color: #fff;
}
body.g3d .form-group { margin-bottom: 18px; }
body.g3d span.error { color: #ffb4c8; font-size: 12px; padding-left: 8px; }
body.g3d .has-error input.form-control { border-color: #ff7a9c; }

/* show / hide password */
.g3d-eye {
    position: absolute; right: 8px; top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 38px; height: 38px;
    border: 0; border-radius: 10px;
    background: transparent;
    color: rgba(255,255,255,.75);
    cursor: pointer;
}
.g3d-eye:hover { color: #fff; background: rgba(255,255,255,.12); }

body.g3d .forgot-text {
    display: flex; align-items: center; justify-content: space-between;
    margin: 4px 0 24px;
    font-size: 13px;
}
body.g3d .forgot-text a { color: var(--g-accent); font-weight: 500; }
body.g3d .forgot-text a:hover { color: #fff; }
body.g3d .checkbox-replace .i-checks { color: var(--g-muted); margin: 0; }
body.g3d .checkbox-replace .i-checks > i {
    border-radius: 6px;
    border-color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.12);
}
body.g3d .checkbox-replace .i-checks input:checked + i { border-color: var(--g-accent); }
body.g3d .checkbox-replace .i-checks input:checked + i::before { background: var(--g-accent); }

/* 3D push button */
body.g3d .btn-round {
    position: relative;
    height: 56px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .4px;
    background: linear-gradient(135deg, #3ad0ff 0%, #4c6bff 50%, #8b5cff 100%);
    background-size: 200% 100%;
    box-shadow: 0 6px 0 #2a2f8f, 0 18px 34px rgba(40, 60, 200, .45), inset 0 1px 0 rgba(255,255,255,.45);
    transition: transform .15s ease, box-shadow .15s ease, background-position .5s ease;
    overflow: hidden;
}
body.g3d .btn-round::after {
    content: "";
    position: absolute; top: 0; bottom: 0; left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-20deg);
    animation: g3d-shine 3.2s ease-in-out infinite;
}
@keyframes g3d-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
body.g3d .btn-round:hover { color: #fff; background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 8px 0 #2a2f8f, 0 24px 40px rgba(40, 60, 200, .5), inset 0 1px 0 rgba(255,255,255,.45); }
body.g3d .btn-round:active, body.g3d .btn-round.is-loading { transform: translateY(5px); box-shadow: 0 1px 0 #2a2f8f, 0 8px 16px rgba(40, 60, 200, .4); }
body.g3d .btn-round:focus { outline: 0; color: #fff; }

body.g3d .sign-footer p { color: rgba(235, 242, 255, .6); font-size: 12px; text-align: center; margin-top: 18px; }
body.g3d .sign-footer a { color: var(--g-accent); }

/* forgot / reset pages */
body.g3d .forgot-header { color: var(--g-muted); background: transparent; border: 0; padding: 0; margin-bottom: 22px; text-align: left; }
body.g3d .forgot-header h4 { color: #fff; font-weight: 600; margin: 0 0 6px; }
body.g3d .alert-msg { border-radius: 14px; background: rgba(60, 220, 150, .2); border: 1px solid rgba(60, 220, 150, .5); color: #fff; }
body.g3d .alert-msg.danger { background: rgba(255, 90, 130, .2); border-color: rgba(255, 90, 130, .5); }
body.g3d .sign-area a { color: var(--g-accent); }

/* glare that follows the mouse (set by glass-3d.js) */
.g3d-glare {
    position: absolute; inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.16), transparent 50%);
    z-index: 2;
}
body.g3d .slideIn { position: relative; }
body.g3d .slideIn > * { position: relative; z-index: 3; }

/* ---------------- phones and tablets ---------------- */
@media (max-width: 991px) {
    body.g3d .slideIn { flex-direction: column; max-width: 520px; margin: 0 auto; }
    body.g3d .slideIn > .fitxt-center { flex: none; }
    body.g3d .image-area { min-height: 0; padding: 28px 22px 22px; border-right: 0; border-bottom: 1px solid var(--g-line); }
    body.g3d .image-area .address, body.g3d .g3d-feats, body.g3d .f-social-links { display: none; }
    body.g3d .image-area .image-hader h2 { font-size: 22px; margin-bottom: 14px; }
    body.g3d .img-hol-p { margin-bottom: 6px; padding: 12px 18px; }
    body.g3d .sign-area { min-height: 0; padding: 30px 24px 24px; }
    .g3d-ring, .g3d-pill { display: none; }
    .g3d-cube { top: 4%; right: 6%; transform: scale(.7); }
}
@media (max-width: 420px) {
    body.g3d .auth-main { padding: 18px 12px; }
    body.g3d .sign-area .sign-hader h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
    .g3d-scene *, body.g3d .slideIn, body.g3d .img-hol-p, body.g3d .btn-round::after { animation: none !important; }
}
