/*! Tailwind CSS - Login Page Build (Offline) */

/* ===== BASE RESET ===== */
*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}
html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: ui-sans-serif, system-ui, sans-serif;
}
body { margin: 0; line-height: inherit; }
b, strong { font-weight: bolder; }
button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}
button, select { text-transform: none; }
button, [type='button'], [type='reset'], [type='submit'] {
    -webkit-appearance: button;
    appearance: button;
    background-color: transparent;
    background-image: none;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { opacity: 1; color: #9ca3af; }
button, [role="button"] { cursor: pointer; }
:disabled { cursor: default; }

/* SVG — jangan block agar tidak rusak layout inline */
svg { display: inline-block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; display: block; }

[hidden] { display: none !important; }

/* ===== LAYOUT ===== */
.block        { display: block; }
.flex         { display: flex; }
.inline-flex  { display: inline-flex; }
.hidden       { display: none !important; }

.relative  { position: relative; }
.absolute  { position: absolute; }

.inset-0   { top: 0; right: 0; bottom: 0; left: 0; }

/* negative positions untuk dekorasi */
.-top-20   { top: -5rem; }
.-left-20  { left: -5rem; }
.-bottom-24 { bottom: -6rem; }
.-right-16 { right: -4rem; }
.top-1\/2  { top: 50%; }
.left-1\/4 { left: 25%; }

.overflow-hidden    { overflow: hidden; }
.pointer-events-none { pointer-events: none; }

/* Flex helpers */
.flex-col       { flex-direction: column; }
.items-center   { align-items: center; }
.justify-center { justify-content: center; }
.shrink-0       { flex-shrink: 0; }
.gap-2          { gap: 0.5rem; }

/* ===== SIZING ===== */
.w-4   { width: 1rem; }
.w-5   { width: 1.25rem; }
.w-8   { width: 2rem; }
.w-16  { width: 4rem; }
.w-40  { width: 10rem; }
.w-72  { width: 18rem; }
.w-96  { width: 24rem; }
.w-full { width: 100%; }

.h-4   { height: 1rem; }
.h-5   { height: 1.25rem; }
.h-8   { height: 2rem; }
.h-16  { height: 4rem; }
.h-40  { height: 10rem; }
.h-72  { height: 18rem; }
.h-96  { height: 24rem; }
.min-h-screen { min-height: 100vh; }

.max-w-md { max-width: 28rem; }

/* ===== SPACING ===== */
.p-4   { padding: 1rem; }
.px-4  { padding-left: 1rem;  padding-right: 1rem; }
.px-8  { padding-left: 2rem;  padding-right: 2rem; }
.py-3  { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8  { padding-top: 2rem;   padding-bottom: 2rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.pr-4  { padding-right: 1rem; }
.pb-6  { padding-bottom: 1.5rem; }

.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-5  { margin-bottom: 1.25rem; }
.mb-7  { margin-bottom: 1.75rem; }
.mt-1  { margin-top: 0.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== TYPOGRAPHY ===== */
.text-xs   { font-size: 0.75rem;  line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-2xl  { font-size: 1.5rem;   line-height: 2rem; }
.text-center { text-align: center; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.tracking-wide { letter-spacing: 0.025em; }

/* ===== COLORS — TEXT ===== */
.text-white   { color: #ffffff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-blue-200 { color: #bfdbfe; }
.text-red-700  { color: #b91c1c; }

/* ===== COLORS — BACKGROUND ===== */
.bg-white     { background-color: #ffffff; }
.bg-red-50    { background-color: #fef2f2; }
.bg-blue-300  { background-color: #93c5fd; }
.bg-blue-600  { background-color: #2563eb; }

/* ===== OPACITY ===== */
.opacity-5   { opacity: 0.05; }
.opacity-10  { opacity: 0.1; }

/* bg-white bg-opacity-20 → putih 20% opacity */
.bg-white.bg-opacity-20 { background-color: rgba(255, 255, 255, 0.2) !important; }

/* ===== GRADIENTS ===== */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-from, #2563eb), var(--tw-gradient-to, #1d4ed8));
}
.from-blue-600 { --tw-gradient-from: #2563eb; }
.to-blue-700   { --tw-gradient-to: #1d4ed8; }

/* ===== BORDERS ===== */
.border         { border-width: 1px; }
.border-gray-300 { border-color: #d1d5db; }
.border-red-200  { border-color: #fecaca; }
.rounded        { border-radius: 0.25rem; }
.rounded-lg     { border-radius: 0.5rem; }
.rounded-full   { border-radius: 9999px; }
.rounded-2xl    { border-radius: 1rem; }

/* ===== SHADOWS ===== */
.shadow-md  { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1); }
.shadow-lg  { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }

/* ===== TRANSITIONS ===== */
.transition  { transition: color 200ms, background-color 200ms, border-color 200ms, box-shadow 200ms, opacity 200ms, transform 200ms; }
.duration-200 { transition-duration: 200ms; }

/* ===== INTERACTIVE STATES ===== */
.hover\:bg-blue-700:hover  { background-color: #1d4ed8; }
.hover\:shadow-lg:hover    { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.active\:bg-blue-800:active { background-color: #1e40af; }

.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}
.focus\:border-transparent:focus { border-color: transparent; }
.focus\:ring-blue-500:focus { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); }
.focus\:ring-offset-2:focus { outline-offset: 2px; }

/* ===== CUSTOM COMPONENTS ===== */

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

.bg-gradient-kasir {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #1d4ed8 100%);
}

/* Input with icon */
.input-icon-wrapper {
    position: relative;
}

.input-left-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
}

.input-with-icon       { padding-left: 46px; }
.input-with-icon-right { padding-right: 46px; }

/* Input base style */
.input-with-icon,
.input-with-icon.input-with-icon-right {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #1f2937;
    background-color: #ffffff;
    transition: border-color 200ms, box-shadow 200ms;
}
.input-with-icon:focus,
.input-with-icon.input-with-icon-right:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Submit button — full width, proper height */
button[type="submit"].w-full {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #2563eb;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: background-color 200ms, box-shadow 200ms;
}
button[type="submit"].w-full:hover  { background-color: #1d4ed8; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
button[type="submit"].w-full:active { background-color: #1e40af; }
button[type="submit"].w-full:focus  { outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,0.4); }

/* Toggle show/hide password */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    color: #9ca3af;
    line-height: 0;
}
.toggle-password:hover { color: #6b7280; }
.toggle-password:focus { outline: none; }

/* ===== PLACEHOLDER ===== */
.placeholder-gray-400::placeholder { color: #9ca3af; }
