/**
 * Modern Login Page - POS BILGISA
 * Enterprise-grade SaaS Login Experience
 * Glassmorphism, Smooth Animations, Premium Feel
 * Version: 4.0
 */

/* ================================================
   BASE IMPORTS & VARIABLES
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Primary Brand */
    --login-primary: #4f46e5;
    --login-primary-dark: #4338ca;
    --login-primary-light: #818cf8;
    --login-primary-50: #eef2ff;

    /* Accent Colors */
    --login-accent-kasir: #8b5cf6;
    --login-accent-kasir-dark: #7c3aed;
    --login-accent-admin: #3b82f6;
    --login-accent-admin-dark: #2563eb;

    /* Neutrals */
    --login-gray-50: #f9fafb;
    --login-gray-100: #f3f4f6;
    --login-gray-200: #e5e7eb;
    --login-gray-300: #d1d5db;
    --login-gray-400: #9ca3af;
    --login-gray-500: #6b7280;
    --login-gray-600: #4b5563;
    --login-gray-700: #374151;
    --login-gray-800: #1f2937;
    --login-gray-900: #111827;

    /* Semantic */
    --login-success: #22c55e;
    --login-success-light: #dcfce7;
    --login-warning: #f59e0b;
    --login-warning-light: #fef3c7;
    --login-danger: #ef4444;
    --login-danger-light: #fee2e2;
    --login-info: #3b82f6;
    --login-info-light: #dbeafe;

    /* Glass */
    --login-glass-bg: rgba(255, 255, 255, 0.8);
    --login-glass-border: rgba(255, 255, 255, 0.4);
    --login-glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ================================================
   RESET & BASE
   ================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* ================================================
   ANIMATED GRADIENT BACKGROUND
   ================================================ */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(135deg,
            #0f172a 0%,
            #1e1b4b 25%,
            #312e81 50%,
            #4338ca 75%,
            #4f46e5 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating Orbs */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: floatOrb 20s ease-in-out infinite;
}

.bg-orb:nth-child(1) {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    top: -200px;
    left: -150px;
    animation-delay: 0s;
}

.bg-orb:nth-child(2) {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.bg-orb:nth-child(3) {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #06b6d4, #67e8f9);
    top: 50%;
    left: 20%;
    animation-delay: -10s;
}

.bg-orb:nth-child(4) {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #ec4899, #f472b6);
    bottom: 30%;
    right: 25%;
    animation-delay: -15s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 40px) scale(1.02);
    }
}

/* Grid Pattern Overlay */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* ================================================
   LOGIN CONTAINER
   ================================================ */
.login-container {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   GLASSMORPHISM CARD
   ================================================ */
.login-card {
    background: var(--login-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    border: 1px solid var(--login-glass-border);
    box-shadow: var(--login-glass-shadow);
    overflow: visible;
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

/* ================================================
   HEADER SECTION
   ================================================ */
.login-header {
    padding: 40px 36px 32px;
    text-align: center;
    position: relative;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 36px;
    right: 36px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--login-gray-200), transparent);
}

/* Logo Container */
.logo-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.logo-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--login-primary), var(--login-primary-dark));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 20px 40px -15px rgba(79, 70, 229, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: logoShine 3s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes logoShine {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 100%;
    }
}

.logo-wrapper img {
    width: 75%;
    height: 75%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.logo-icon {
    width: 50px;
    height: 50px;
    color: white;
}

/* Brand Text */
.brand-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--login-gray-900);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--login-gray-900), var(--login-gray-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    font-size: 14px;
    color: var(--login-gray-500);
    font-weight: 500;
}

/* ================================================
   TAB SWITCHER
   ================================================ */
.tab-container {
    padding: 0 28px;
    margin-top: -20px;
    position: relative;
    z-index: 10;
}

.tab-switcher {
    display: flex;
    background: var(--login-gray-100);
    border-radius: 16px;
    padding: 5px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04) inset;
}

.tab-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--login-gray-500);
    position: relative;
}

.tab-btn:hover:not(.active) {
    color: var(--login-gray-700);
    background: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
    background: white;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    transform: scale(1.02);
}

.tab-btn.kasir.active {
    color: var(--login-accent-kasir);
}

.tab-btn.admin.active {
    color: var(--login-accent-admin);
}

.tab-btn i {
    font-size: 18px;
}

/* ================================================
   LOGIN BODY
   ================================================ */
.login-body {
    padding: 32px 36px 36px;
}

.form-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   ALERT MESSAGES
   ================================================ */
.alert {
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: alertSlide 0.4s ease;
}

@keyframes alertSlide {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert i {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-danger {
    background: linear-gradient(135deg, var(--login-danger-light), #fff1f2);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: linear-gradient(135deg, var(--login-warning-light), #fffbeb);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
    background: linear-gradient(135deg, var(--login-info-light), #eff6ff);
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.alert-success {
    background: linear-gradient(135deg, var(--login-success-light), #f0fdf4);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Lock Warning */
.lock-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.lock-warning i {
    font-size: 28px;
    color: #f59e0b;
}

.lock-warning strong {
    display: block;
    color: #92400e;
    margin-bottom: 2px;
}

.lock-warning .small {
    font-size: 13px;
    color: #a16207;
}

/* ================================================
   CASHIER SELECTOR
   ================================================ */
.cashier-selector {
    position: relative;
    margin-bottom: 24px;
    z-index: 100;
}

.cashier-selector-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--login-gray-700);
    margin-bottom: 10px;
}

.cashier-trigger {
    width: 100%;
    background: white;
    border: 2px solid var(--login-gray-200);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
}

.cashier-trigger:hover {
    border-color: var(--login-gray-300);
    background: var(--login-gray-50);
}

.cashier-trigger:focus,
.cashier-trigger.open {
    border-color: var(--login-accent-kasir);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
    outline: none;
}

.selected-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.cashier-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--login-accent-kasir), var(--login-accent-kasir-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.cashier-name {
    font-weight: 600;
    color: var(--login-gray-900);
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cashier-placeholder {
    color: var(--login-gray-400);
    font-weight: 500;
}

.chevron-icon {
    width: 22px;
    height: 22px;
    color: var(--login-gray-400);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.cashier-trigger.open .chevron-icon {
    transform: rotate(180deg);
}

/* Dropdown */
.cashier-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--login-gray-200);
    border-radius: 16px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    z-index: 9999;
    display: none;
    max-height: 320px;
    overflow: hidden;
}

.cashier-dropdown.show {
    display: block;
    animation: dropdownSlide 0.25s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cashier-search {
    padding: 14px;
    border-bottom: 1px solid var(--login-gray-100);
}

.cashier-search input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--login-gray-200);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    background: var(--login-gray-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") no-repeat 14px center;
    background-size: 18px;
    transition: all 0.2s ease;
}

.cashier-search input:focus {
    outline: none;
    border-color: var(--login-accent-kasir);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.cashier-list {
    max-height: 240px;
    overflow-y: auto;
    padding: 8px;
}

.cashier-list::-webkit-scrollbar {
    width: 6px;
}

.cashier-list::-webkit-scrollbar-track {
    background: var(--login-gray-100);
}

.cashier-list::-webkit-scrollbar-thumb {
    background: var(--login-gray-300);
    border-radius: 3px;
}

.cashier-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cashier-item:hover {
    background: var(--login-gray-50);
}

.cashier-item.selected {
    background: rgba(139, 92, 246, 0.1);
}

.cashier-item .check-icon {
    margin-left: auto;
    color: var(--login-accent-kasir);
    font-size: 18px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
}

.cashier-item.selected .check-icon {
    opacity: 1;
    transform: scale(1);
}

.no-cashiers {
    padding: 40px 20px;
    text-align: center;
    color: var(--login-gray-400);
}

.no-cashiers i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    opacity: 0.5;
}

.no-cashiers p {
    font-size: 14px;
}

/* ================================================
   PIN INPUT
   ================================================ */
.pin-section {
    margin-top: 28px;
    animation: fadeIn 0.3s ease;
}

.pin-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--login-gray-700);
    margin-bottom: 16px;
}

.pin-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.pin-digit {
    width: 52px;
    height: 64px;
    font-family: inherit;
    font-size: 26px;
    font-weight: 700;
    border-radius: 14px;
    border: 2px solid var(--login-gray-200);
    text-align: center;
    transition: all 0.2s ease;
    background: white;
    color: var(--login-gray-900);
}

.pin-digit:focus {
    border-color: var(--login-accent-kasir);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
    outline: none;
    background: white;
}

.pin-digit.filled {
    border-color: var(--login-accent-kasir);
    background: var(--login-primary-50);
}

.pin-digit.error {
    border-color: var(--login-danger);
    background: var(--login-danger-light);
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

/* ================================================
   FORM CONTROLS
   ================================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--login-gray-700);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--login-gray-400);
    font-size: 18px;
    z-index: 1;
    pointer-events: none;
}

.form-control {
    width: 100%;
    height: 54px;
    border-radius: 14px;
    border: 2px solid var(--login-gray-200);
    padding: 0 18px 0 50px;
    font-family: inherit;
    font-size: 15px;
    background: white;
    transition: all 0.2s ease;
    color: var(--login-gray-900);
}

.form-control:hover {
    border-color: var(--login-gray-300);
}

.form-control:focus {
    border-color: var(--login-accent-admin);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: var(--login-gray-400);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--login-gray-400);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
    z-index: 1;
}

.password-toggle:hover {
    color: var(--login-gray-600);
    background: var(--login-gray-100);
}

/* ================================================
   LOGIN BUTTONS
   ================================================ */
.btn-login {
    width: 100%;
    height: 56px;
    border-radius: 16px;
    border: none;
    color: white;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login.kasir {
    background: linear-gradient(135deg, var(--login-accent-kasir), var(--login-accent-kasir-dark));
    box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.5);
}

.btn-login.admin {
    background: linear-gradient(135deg, var(--login-accent-admin), var(--login-accent-admin-dark));
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.5);
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.4);
}

.btn-login:active {
    transform: translateY(-1px);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-login:disabled::before {
    display: none;
}

.btn-login i {
    font-size: 18px;
}

/* ================================================
   HELP TEXT
   ================================================ */
.help-text {
    text-align: center;
    margin-top: 20px;
    color: var(--login-gray-500);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.help-text i {
    font-size: 14px;
}

/* ================================================
   LOCATION MODAL - Premium Glassmorphism Design
   ================================================ */
/* Ensure modal displays as overlay */
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 10050 !important;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.show {
    display: block !important;
}

.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 10040 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 27, 75, 0.95)) !important;
    backdrop-filter: blur(12px) !important;
}

.modal-backdrop.show {
    opacity: 1 !important;
}

.modal-dialog {
    position: relative;
    width: auto;
    max-width: 420px;
    margin: 1.75rem auto;
    pointer-events: none;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

/* Premium Modal Content */
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98));
    background-clip: padding-box;
    border: none;
    border-radius: 28px;
    outline: 0;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Animated Header with Gradient */
.modal-header-custom {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    background-size: 200% 200%;
    animation: gradientFlow 4s ease infinite;
    color: white;
    padding: 28px 32px 80px;
    border: none;
    position: relative;
    overflow: hidden;
}

@keyframes gradientFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Header Floating Decorations */
.modal-header-custom::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBubble 6s ease-in-out infinite;
}

.modal-header-custom::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBubble 8s ease-in-out infinite reverse;
}

@keyframes floatBubble {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, -20px) scale(1.1);
    }
}

/* Header Shine Effect */
.modal-header-custom .shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 100%;
    }
}

.modal-header-custom .modal-title {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modal-header-custom .modal-title i {
    font-size: 24px;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Premium Modal Body */
.modal-body-custom {
    padding: 0 32px 32px;
    background: white;
    position: relative;
    margin-top: -60px;
}

/* Floating Avatar Card */
.modal-body-custom .user-greeting {
    background: white;
    border-radius: 24px;
    padding: 28px 24px;
    text-align: center;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 10;
    margin-bottom: 24px;
}

.modal-body-custom .greeting-avatar {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -70px auto 20px;
    font-size: 40px;
    color: white;
    box-shadow:
        0 15px 35px rgba(16, 185, 129, 0.4),
        0 0 0 6px white;
    position: relative;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4), 0 0 0 6px white;
    }

    50% {
        box-shadow: 0 20px 45px rgba(16, 185, 129, 0.5), 0 0 0 8px white, 0 0 30px rgba(16, 185, 129, 0.3);
    }
}

/* Success Checkmark Animation */
.greeting-avatar::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.3s ease 0.5s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.modal-body-custom h5 {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--login-gray-900), var(--login-gray-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.modal-body-custom .text-muted {
    color: var(--login-gray-500);
    font-size: 14px;
    font-weight: 500;
}

/* Premium Status Cards */
#locationStatus {
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

#locationStatus i {
    font-size: 20px;
}

#locationStatus.alert-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.1));
    border: 2px solid rgba(34, 197, 94, 0.3);
    color: #15803d;
}

#locationStatus.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(234, 179, 8, 0.1));
    border: 2px solid rgba(245, 158, 11, 0.3);
    color: #b45309;
}

#locationStatus.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.1));
    border: 2px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Late Warning Card */
.modal-body-custom .alert-warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.15));
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: 16px;
    padding: 16px 20px;
    color: #92400e;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.modal-body-custom .alert-warning i {
    font-size: 24px;
    color: #f59e0b;
}

/* Premium Form Controls */
.modal-body-custom .form-group {
    margin-bottom: 20px;
}

.modal-body-custom .form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 13px;
    color: var(--login-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-body-custom .form-control {
    width: 100%;
    height: auto;
    min-height: 120px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 2px solid var(--login-gray-200);
    font-family: inherit;
    font-size: 15px;
    background: var(--login-gray-50);
    transition: all 0.25s ease;
    resize: none;
}

.modal-body-custom .form-control:hover {
    border-color: var(--login-gray-300);
    background: white;
}

.modal-body-custom .form-control:focus {
    border-color: #10b981;
    background: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
    outline: none;
}

.modal-body-custom .form-control::placeholder {
    color: var(--login-gray-400);
}

/* Premium Submit Button */
#btnSubmitAbsensi {
    width: 100%;
    height: 58px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#btnSubmitAbsensi::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

#btnSubmitAbsensi:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
}

#btnSubmitAbsensi:not(:disabled):hover::before {
    left: 100%;
}

#btnSubmitAbsensi:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#btnSubmitAbsensi i {
    font-size: 20px;
}

/* ================================================
   LOADING OVERLAY
   ================================================ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    text-align: center;
}

.spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: white;
    font-size: 15px;
    font-weight: 500;
}

/* ================================================
   RESPONSIVE - TABLET
   ================================================ */
@media (min-width: 768px) and (max-width: 1024px) {
    body {
        padding: 40px;
    }

    .login-container {
        max-width: 500px;
    }

    .login-header {
        padding: 48px 40px 36px;
    }

    .logo-wrapper {
        width: 100px;
        height: 100px;
    }

    .brand-title {
        font-size: 32px;
    }

    .login-body {
        padding: 36px 40px 40px;
    }

    .pin-digit {
        width: 58px;
        height: 72px;
        font-size: 30px;
    }
}

/* ================================================
   RESPONSIVE - MOBILE
   ================================================ */
@media (max-width: 480px) {
    body {
        padding: 16px;
        align-items: flex-start;
        padding-top: 32px;
    }

    .login-card {
        border-radius: 24px;
    }

    .login-header {
        padding: 32px 24px 28px;
    }

    .login-header::after {
        left: 24px;
        right: 24px;
    }

    .logo-wrapper {
        width: 80px;
        height: 80px;
        border-radius: 20px;
    }

    .brand-title {
        font-size: 24px;
    }

    .brand-subtitle {
        font-size: 13px;
    }

    .tab-container {
        padding: 0 20px;
        margin-top: -18px;
    }

    .tab-switcher {
        border-radius: 14px;
        padding: 4px;
    }

    .tab-btn {
        padding: 12px 14px;
        font-size: 13px;
        gap: 8px;
        border-radius: 10px;
    }

    .tab-btn i {
        font-size: 16px;
    }

    .login-body {
        padding: 24px;
    }

    .cashier-trigger {
        padding: 14px 16px;
        border-radius: 14px;
    }

    .cashier-avatar {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .pin-container {
        gap: 8px;
    }

    .pin-digit {
        width: 46px;
        height: 56px;
        font-size: 22px;
        border-radius: 12px;
    }

    .form-control {
        height: 52px;
        padding: 0 16px 0 46px;
        font-size: 14px;
    }

    .btn-login {
        height: 52px;
        font-size: 14px;
        border-radius: 14px;
    }

    .alert {
        padding: 12px 14px;
        font-size: 13px;
    }
}

/* ================================================
   REDUCED MOTION PREFERENCE
   ================================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================================
   HIGH CONTRAST MODE
   ================================================ */
@media (prefers-contrast: high) {
    .login-card {
        border: 2px solid var(--login-gray-900);
    }

    .form-control,
    .cashier-trigger,
    .pin-digit {
        border-width: 2px;
    }
}

/* ================================================
   RECAPTCHA STYLING
   ================================================ */
.g-recaptcha {
    display: flex;
    justify-content: center;
    transform: scale(0.95);
    transform-origin: center;
}

@media (max-width: 380px) {
    .g-recaptcha {
        transform: scale(0.85);
    }
}