/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #2563eb;
    --primary-cyan: #0284c7;
    --primary-hover: #1d4ed8;
    --text-dark: #1e293b;         
    --text-body: #334155;         
    --text-muted: #64748b;       
    --card-bg: rgba(255, 255, 255, 0.88); 
    --input-bg: #f1f5f9;         
    --border-color: #cbd5e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
/*==================================
  LIGHT & SOFT HRMS BACKGROUND
===================================*/
body {
    position: relative;

    /* Premium Soft Blue Background */
    background: linear-gradient(
        135deg,
        #cfe8ff 0%,
        #dceefe 25%,
        #e9f4ff 50%,
        #d7e8fb 75%,
        #c6dcf5 100%
    );
    background-size: 300% 300%;

    min-height: 100vh;
    margin: 0;
    padding: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    font-family: 'Inter', 'Segoe UI', sans-serif;

    overflow: hidden;

    animation: gradientFlow 12s ease-in-out infinite;
}

/* Background Animation */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Soft Floating Light */
body::before,
body::after{
    content:"";
    position:absolute;
    border-radius:50%;
    filter:blur(90px);
    z-index:0;
    pointer-events:none;
}

/* Left Glow */
body::before{
    width:420px;
    height:420px;
    background:rgba(59,130,246,.22);

    top:-120px;
    left:-100px;

    animation:leftGlow 10s ease-in-out infinite alternate;
}

/* Right Glow */
body::after{
    width:380px;
    height:380px;
    background:rgba(14,165,233,.18);

    right:-80px;
    bottom:-80px;

    animation:rightGlow 12s ease-in-out infinite alternate;
}

@keyframes leftGlow{

    0%{
        transform:translate(0,0) scale(1);
    }

    100%{
        transform:translate(60px,35px) scale(1.15);
    }

}

@keyframes rightGlow{

    0%{
        transform:translate(0,0) scale(1);
    }

    100%{
        transform:translate(-50px,-40px) scale(1.12);
    }

}

/*==================================
  CARD WRAPPER (CENTERED)
===================================*/
.card-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 980px;
    height: 620px;
    margin: auto; 
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: cardEntrance 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardEntrance {
    0% { opacity: 0; transform: translateY(40px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/*==================================
  LEFT ANIMATION PANEL
===================================*/
.login-image {
    flex: 1.3;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0f172a, #1e3a8a, #2563eb, #0f172a);
    background-size: 300% 300%;
    animation: bgMove 12s linear infinite;
}

@keyframes bgMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 45px 45px;
    animation: gridMove 20s linear infinite;
    opacity: .35;
}

@keyframes gridMove {
    from { transform: translateY(0); }
    to { transform: translateY(45px); }
}

.floating-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    filter: blur(25px);
    opacity: .45;
}

.b1 { width: 180px; height: 180px; background: #38bdf8; top: 8%; left: 8%; animation: float1 9s ease-in-out infinite; }
.b2 { width: 220px; height: 220px; background: #60a5fa; right: 5%; top: 12%; animation: float2 12s ease-in-out infinite; }
.b3 { width: 260px; height: 260px; background: #2563eb; bottom: 5%; left: 15%; animation: float3 14s ease infinite; }
.b4 { width: 140px; height: 140px; background: #38bdf8; bottom: 12%; right: 15%; animation: float2 8s ease infinite; }
.b5 { width: 100px; height: 100px; background: #ffffff; opacity: .12; left: 50%; top: 5%; animation: float1 6s ease infinite; }

@keyframes float1 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-35px) scale(1.08); }
}

@keyframes float2 {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(30px); }
}

@keyframes float3 {
    0%, 100% { transform: translate(-20px, 20px); }
    50% { transform: translate(25px, -20px); }
}

/*==================================
        HERO TEXT
===================================*/
.hero-text {
    position: absolute;
    top: 35px;
    left: 40px;
    color: #fff;
    z-index: 20;
}

.hero-text h1 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.hero-text p {
    font-size: 16px;
    color: #bfdbfe;
    margin-bottom: 12px;
}

.hero-desc {
    display: block;
    width: 260px;
    line-height: 1.8;
    font-size: 13px;
    color: #dbeafe;
}

/*==================================
        ORBIT SYSTEM (COMPACT)
===================================*/
.orbit-wrapper {
    position: relative;
    width: 320px; 
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Dashed Ring Container */
.orbit-circle {
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(255, 255, 255, .25);
    border-radius: 50%;
    animation: rotateWheel 28s linear infinite;
}

/* Center Logo - স্থির থাকবে */
.center-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 100;
    pointer-events: none;
}

/* old css */
/* .logo-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, #dbeafe);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    box-shadow: 
        0 0 35px rgba(255, 255, 255, .45),
        0 0 60px rgba(37, 99, 235, .35);
    animation: logoPulse 3s ease-in-out infinite;
} */

/* .logo-circle span {
    display: inline-block; 
    width: 70px;    
    height: 70px;
    background: url('../images/hr.jpeg');
    background-size: cover;
    background-position: center;
    border-radius: 50%; 
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
    animation: logoGlow 3s infinite ease-in-out;
} */


/* Center Logo Circle Style Updated */
.logo-circle {
    width: 80px;
    height: 80px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    box-shadow: none;
    animation: logoPulse 3s ease-in-out infinite;
}

.logo-circle span {
    display: inline-block; 
    width: 100%;    
    height: 100%;
    background: url('../images/hr.jpeg');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.center-logo h3 {
    color: #fff;
    margin-top: 10px;
    font-size: 22px;
    font-weight: 800;
}

.center-logo p {
    color: #bfdbfe;
    font-size: 12px;
    line-height: 1.3;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/*==================================
        ORBITING ITEMS (CLOSER DISTANCE)
===================================*/
.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 85px;
    height: 85px;
    margin-top: -42.5px;
    margin-left: -42.5px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
    transition: transform .3s ease, background .3s ease;
    z-index: 10;
}

.orbit-item i {
    font-size: 24px;
}

.orbit-item span {
    font-size: 11px;
    font-weight: 700;
}

.biometric  { animation: orbitPos0 28s linear infinite; }
.payroll    { animation: orbitPos1 28s linear infinite; }
.leave      { animation: orbitPos2 28s linear infinite; }
.reports    { animation: orbitPos3 28s linear infinite; }
.employee   { animation: orbitPos4 28s linear infinite; }
.attendance { animation: orbitPos5 28s linear infinite; }
.shift      { animation: orbitPos6 28s linear infinite; }
.settings   { animation: orbitPos7 28s linear infinite; }

@keyframes rotateWheel {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbitPos0 {
    from { transform: rotate(0deg) translateY(-160px) rotate(0deg); }
    to   { transform: rotate(360deg) translateY(-160px) rotate(-360deg); }
}

@keyframes orbitPos1 {
    from { transform: rotate(45deg) translateY(-160px) rotate(-45deg); }
    to   { transform: rotate(405deg) translateY(-160px) rotate(-405deg); }
}

@keyframes orbitPos2 {
    from { transform: rotate(90deg) translateY(-160px) rotate(-90deg); }
    to   { transform: rotate(450deg) translateY(-160px) rotate(-450deg); }
}

@keyframes orbitPos3 {
    from { transform: rotate(135deg) translateY(-160px) rotate(-135deg); }
    to   { transform: rotate(495deg) translateY(-160px) rotate(-495deg); }
}

@keyframes orbitPos4 {
    from { transform: rotate(180deg) translateY(-160px) rotate(-180deg); }
    to   { transform: rotate(540deg) translateY(-160px) rotate(-540deg); }
}

@keyframes orbitPos5 {
    from { transform: rotate(225deg) translateY(-160px) rotate(-225deg); }
    to   { transform: rotate(585deg) translateY(-160px) rotate(-585deg); }
}

@keyframes orbitPos6 {
    from { transform: rotate(270deg) translateY(-160px) rotate(-270deg); }
    to   { transform: rotate(630deg) translateY(-160px) rotate(-630deg); }
}

@keyframes orbitPos7 {
    from { transform: rotate(315deg) translateY(-160px) rotate(-315deg); }
    to   { transform: rotate(675deg) translateY(-160px) rotate(-675deg); }
}

/* Icon Colors & Glow Effects */
.biometric i { color: #38bdf8; }
.payroll i   { color: #22c55e; }
.leave i     { color: #fbbf24; }
.reports i   { color: #fb7185; }
.employee i  { color: #ffffff; }
.attendance i{ color: #06b6d4; }
.shift i     { color: #a78bfa; }
.settings i  { color: #e2e8f0; }

.biometric  { box-shadow: 0 0 18px rgba(56,189,248,.35); }
.payroll    { box-shadow: 0 0 18px rgba(34,197,94,.35); }
.leave      { box-shadow: 0 0 18px rgba(251,191,36,.35); }
.reports    { box-shadow: 0 0 18px rgba(244,63,94,.30); }
.employee   { box-shadow: 0 0 18px rgba(255,255,255,.25); }
.attendance { box-shadow: 0 0 18px rgba(6,182,212,.30); }
.shift      { box-shadow: 0 0 18px rgba(167,139,250,.30); }
.settings   { box-shadow: 0 0 18px rgba(255,255,255,.20); }

/*==================================
        BOTTOM BADGE & FEATURES
===================================*/
.payroll-badge {
    position: absolute;
    left: 30px;
    bottom: 30px;
    z-index: 100;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .20);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 40px;
    display: flex;
    gap: 10px;
    align-items: center;
    animation: badgePulse 3s infinite;
}

.payroll-badge i {
    color: #38bdf8;
    font-size: 18px;
}

@keyframes badgePulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.feature-list {
    position: absolute;
    bottom: 35px;
    right: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    z-index: 100;
}

.feature-box {
    padding: 12px 18px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(20px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
}

.feature-box i {
    color: #38bdf8;
}
/* 4. Right Side - Clean Form Panel */
.login-form {
    flex: 1.1;
    padding: 45px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.979);
}

/* 5. Brand Header Style */
.brand-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.brand-header .small_logo {
    width: 52px;
    height: 52px;
    background: url('../images/hr.jpeg');
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
    animation: logoGlow 3s infinite ease-in-out;
}

@keyframes logoGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.brand-title-wrap {
    display: flex;
    flex-direction: column;
}

.brand-header .small_logo2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #1e3a8a, #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-header .sub-text {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary-cyan);
    letter-spacing: 1.8px;
    margin-top: 1px;
}

/* 6. Inputs & Soft Focus Effect */
.input-group-custom {
    margin-bottom: 18px;
}

#loginForm label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#loginForm label i {
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    font-size: 0.95rem;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--input-bg);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #94a3b8;
}

/* 7. Button Style */
.btn-login {
    position: relative;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e3a8a 0%, #0284c7 100%);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.btn-login span {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(30, 58, 138, 0.4);
    background: linear-gradient(135deg, #1e40af 0%, #0369a1 100%);
}

.btn-login:active {
    transform: translateY(0);
}

/* 8. Reset Link & Biometric Footer */
.reset-container {
    text-align: center;
    margin-top: 14px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.04);
}

.btn-reset {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-reset:hover {
    color: var(--primary-color);
}

.biomax-tag {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.biomax-tag i {
    color: var(--primary-color);
}

.biomax-tag strong {
    color: var(--text-dark);
}

/* ==========================================================================
   SweetAlert2 Clean Modal
   ========================================================================== */

.swal2-popup {
    border-radius: 20px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid var(--border-color) !important;
    padding: 30px !important;
    background: #ffffff !important;
    color: var(--text-dark) !important;
}

.swal2-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
}

.swal2-html-container {
    font-size: 0.95rem !important;
    color: var(--text-muted) !important;
}

.swal2-input {
    border-radius: 10px !important;
    border: 1.5px solid var(--border-color) !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    background-color: var(--input-bg) !important;
    color: var(--text-dark) !important;
}

.swal2-confirm {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
}

.swal2-cancel {
    background: #e2e8f0 !important;
    color: var(--text-dark) !important;
    border-radius: 10px !important;
}

#otpTimer {
    font-size: 15px;
    font-weight: 600;
    color: #e11d48;
    margin-top: 10px;
}

#otpError {
    color: #e11d48;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Responsive View */
@media (max-width: 850px) {
    .card-wrapper {
        flex-direction: column;
        height: auto;
        max-width: 440px;
    }

    .login-image {
        display: none; 
    }

    .login-form {
        padding: 35px 25px;
    }
}