/* PWA Login - Optimized Self-contained CSS */
/* This replaces TailwindCSS CDN (~5MB) with minimal CSS (~10KB) */

/* Import local Inter font */
@import url('/assets/fonts/inter.css');

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    line-height: 1.5;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Safe area for iOS notch */
@supports (padding: env(safe-area-inset-top)) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Layout Utilities */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.overflow-hidden { overflow: hidden; }

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }

/* Sizing */
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-md { max-width: 28rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Colors */
.text-white { color: #ffffff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-green-100 { color: #d1fae5; }
.text-green-600 { color: #059669; }
.text-green-700 { color: #047857; }
.text-red-700 { color: #b91c1c; }

.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-green-50 { background-color: #ecfdf5; }
.bg-green-600 { background-color: #059669; }
.bg-green-700 { background-color: #047857; }
.bg-red-50 { background-color: #fef2f2; }

/* Gradient */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to));
}
.from-green-50 { --tw-gradient-from: #ecfdf5; --tw-gradient-to: #d1fae5; }
.to-green-100 { --tw-gradient-to: #d1fae5; }
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to));
}
.from-green-600 { --tw-gradient-from: #059669; }
.to-green-700 { --tw-gradient-to: #047857; }

/* Borders */
.border { border-width: 1px; border-style: solid; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-300 { border-color: #d1d5db; }
.border-green-200 { border-color: #a7f3d0; }
.border-red-200 { border-color: #fecaca; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Shadow */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.left-4 { left: 1rem; }
.top-1\/2 { top: 50%; }
.-translate-y-1\/2 { transform: translateY(-50%); }

/* Input Styles */
.pl-12 { padding-left: 3rem; }
.pr-4 { padding-right: 1rem; }

input[type="tel"],
input[type="password"],
input[type="text"] {
    appearance: none;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.75rem 1rem 0.75rem 3rem;
    width: 100%;
    transition: all 0.2s ease;
}

input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* Button */
button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #059669;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

button[type="submit"]:hover {
    background-color: #047857;
}

button[type="submit"]:active {
    transform: scale(0.98);
}

/* Links */
a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #059669;
}

.inline-flex {
    display: inline-flex;
}

/* Material Icons substitute - simple CSS icons */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Alert boxes */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid;
}

.alert-success {
    background-color: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.alert-error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

/* Object fit */
.object-contain { object-fit: contain; }

/* Block */
.block { display: block; }
.inline-block { display: inline-block; }

/* Transitions */
.transition-all { transition: all 0.2s ease; }

/* Hover text color */
.hover\:text-green-600:hover { color: #059669; }
.hover\:text-green-800:hover { color: #065f46; }
.hover\:bg-green-700:hover { background-color: #047857; }
