/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

:root {
    /* Core palette — biotech teal + warm amber accent */
    --primary-color: #0f766e;      /* teal-700 */
    --primary-deep: #0b4f4b;       /* deep teal-navy for dark panel */
    --primary-hover: #0d5c56;
    --accent-amber: #f59e0b;       /* warm amber, used sparingly */
    --accent-mint: #34d399;        /* bright mint highlight */

    --text-dark: #0f2a28;
    --text-body: #33514d;
    --text-muted: #6b8683;

    --card-bg: rgba(255, 255, 255, 0.9);
    --input-bg: #f0f7f5;
    --border-color: #cfe3df;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
/*==================================
  LIGHT & SOFT HRMS BACKGROUND
===================================*/
body {
    position: relative;

    /* Soft mint / teal wash background */
    background: linear-gradient(
        135deg,
        #e8f6f2 0%,
        #dcf1ea 25%,
        #eef8f4 50%,
        #d9ecf0 75%,
        #cfe4e6 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 — amber warmth */
body::before{
    width:420px;
    height:420px;
    background:rgba(245,158,11,.18);

    top:-120px;
    left:-100px;

    animation:leftGlow 10s ease-in-out infinite alternate;
}

/* Right Glow — teal/mint */
body::after{
    width:380px;
    height:380px;
    background:rgba(52,211,153,.22);

    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(9, 30, 28, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 980px;
    height: 580px;
    margin: auto;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 45px rgba(5, 30, 27, 0.45);
    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, #08201d, #0b4f4b, #0f766e, #08201d);
    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: .4;
}

.b1 { width: 180px; height: 180px; background: #34d399; top: 8%; left: 8%; animation: float1 9s ease-in-out infinite; }
.b2 { width: 220px; height: 220px; background: #f59e0b; right: 5%; top: 12%; animation: float2 12s ease-in-out infinite; opacity: .28; }
.b3 { width: 260px; height: 260px; background: #0f766e; bottom: 5%; left: 15%; animation: float3 14s ease infinite; }
.b4 { width: 140px; height: 140px; background: #34d399; 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-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.hero-text p {
    font-size: 16px;
    color: #a7f3d0;
    margin-bottom: 12px;
}

.hero-desc {
    display: block;
    width: 260px;
    line-height: 1.8;
    font-size: 13px;
    color: #d1fae5;
}

/*==================================
        ORBIT SYSTEM (COMPACT)
===================================*/
.orbit-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top:60px;
}

/* Dashed Ring Container */
.orbit-circle {
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(255, 255, 255, .22);
    border-radius: 50%;
    animation: rotateWheel 28s linear infinite;
}

/* Center Logo — static */
.center-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 100;
    pointer-events: none;
}

/* Center Logo Circle Style */
.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 18px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(52, 211, 153, .18);
}

.center-logo h3 {
    color: #fff;
    margin-top: 10px;
    font-size: 22px;
    font-weight: 800;
}

.center-logo p {
    color: #a7f3d0;
    font-size: 12px;
    line-height: 1.3;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/*==================================
        ORBITING ITEMS
===================================*/
.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, .10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .18);
    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;
}

.organization  { 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; }
.payslip    { 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 — biotech teal / amber / mint family */
.organization i { color: #34d399; }
.payroll i   { color: #f59e0b; }
.leave i     { color: #24fbd3; }
.reports i   { color: #fb7185; }
.employee i  { color: #ffffff; }
.attendance i{ color: #2dd4bf; }
.shift i     { color: #a78bfa; }
.payslip i   { color: #f59e0b; }
.settings i  { color: #e2e8f0; }

.organization  { box-shadow: 0 0 18px rgba(52,211,153,.35); }
.payroll    { box-shadow: 0 0 18px rgba(245,158,11,.32); }
.leave      { box-shadow: 0 0 18px rgba(251,191,36,.32); }
.reports    { box-shadow: 0 0 18px rgba(244,63,94,.28); }
.employee   { box-shadow: 0 0 18px rgba(255,255,255,.22); }
.attendance { box-shadow: 0 0 18px rgba(45,212,191,.30); }
.shift      { box-shadow: 0 0 18px rgba(167,139,250,.28); }
.payslip    { box-shadow: 0 0 18px rgba(245,158,11,.32); }
.settings   { box-shadow: 0 0 18px rgba(255,255,255,.18); }

/*==================================
        BOTTOM BADGE & FEATURES
===================================*/
.payroll-badge {
    position: absolute;
    left: 30px;
    bottom: 30px;
    z-index: 100;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .18);
    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: #34d399;
    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, .10);
    backdrop-filter: blur(20px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
}

.feature-box i {
    color: #34d399;
}

/* 4. Right Side - Clean Form Panel */
.login-form {
    flex: 1.1;
    padding: 45px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--card-bg);
}

/* 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(15, 118, 110, 0.25);
    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-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.3px;
    background: linear-gradient(90deg, #0b4f4b, #0f766e 55%, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-header .sub-text {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-amber);
    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;
    letter-spacing: 0.3px;
}

#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(15, 118, 110, 0.14), 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #94a8a5;
}

/* 7. Button Style */
.btn-login {
    position: relative;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0b4f4b 0%, #0f766e 55%, #10a37f 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(11, 79, 75, 0.32);
}

.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(11, 79, 75, 0.42);
    background: linear-gradient(135deg, #0d5c56 0%, #11907f 55%, #22bb92 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(15, 118, 110, 0.05);
}

.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(11, 79, 75, 0.22) !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;
    }
}