/* Tailwind CSS Standalone - Essential utilities for School ERP */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  line-height: 1.5;
  color: #1f2937;
}

/* Display utilities */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flex utilities */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Grid utilities */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Width/Height */
.w-full { width: 100%; }
.w-screen { width: 100vw; }
.h-6 { height: 1.5rem; }
.h-14 { height: 3.5rem; }
.min-h-screen { min-height: 100vh; }
.min-w-fit { min-width: fit-content; }

/* Max-width */
.max-w-6xl { max-width: 72rem; }
.max-w-xs { max-width: 20rem; }
.max-w-md { max-width: 28rem; }

/* Padding */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }

/* Margin */
.m-auto { margin: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

/* Colors - Text */
.text-white { color: #ffffff; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-700 { color: #334155; }
.text-slate-900 { color: #0f172a; }
.text-slate-950 { color: #020617; }
.text-red-700 { color: #b91c1c; }
.text-emerald-700 { color: #047857; }

/* Colors - Background */
.bg-white { background-color: #ffffff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-950 { background-color: #020617; }
.bg-sky-500 { background-color: #0ea5e9; }
.bg-sky-600 { background-color: #0284c7; }
.bg-sky-100 { background-color: #e0f2fe; }
.bg-red-50 { background-color: #fef2f2; }
.bg-emerald-500 { background-color: #10b981; }
.bg-violet-500 { background-color: #a855f7; }

/* Colors - Border */
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-red-200 { border-color: #fecaca; }
.border-emerald-200 { border-color: #a7f3d0; }

/* Border */
.border { border-width: 1px; border-style: solid; }
.rounded-full { border-radius: 9999px; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-2xl { border-radius: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }

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

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Text sizing */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.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-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

/* Font weight */
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

/* Letter spacing */
.tracking-tight { letter-spacing: -0.015em; }
.tracking-\[0\.08em\] { letter-spacing: 0.08em; }
.tracking-\[0\.35em\] { letter-spacing: 0.35em; }

/* Text alignment */
.text-center { text-align: center; }

/* Outline */
.outline-none { outline: none; }

/* Focus & Transition */
.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Input/Button focus */
input:focus {
  outline: none;
}

/* Hover states */
.hover\:bg-sky-700:hover { background-color: #0c63e4; }
.hover\:border-\[\#19140035\]:hover { border-color: #19140035; }

/* Leading (line-height) */
.leading-relaxed { line-height: 1.625; }

/* Center alignment helper */
.mx-auto { margin-left: auto; margin-right: auto; }

/* Responsive */
@media (max-width: 1024px) {
  .lg\:grid-cols-\[420px_minmax\(0\,1fr\)\] {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .lg\:rounded-tl-lg {
    border-top-left-radius: 0;
  }
  .lg\:p-8 {
    padding: 2rem;
  }
  .lg\:mb-0 {
    margin-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-\[420px_minmax\(0\,1fr\)\] {
    grid-template-columns: 420px minmax(0, 1fr);
  }
  .lg\:max-w-4xl {
    max-width: 56rem;
  }
  .lg\:p-8 {
    padding: 2rem;
  }
}

@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
  .sm\:items-center {
    align-items: center;
  }
  .sm\:justify-between {
    justify-content: space-between;
  }
  .md\:p-14 {
    padding: 3.5rem;
  }
}

/* ============================================================
   Additional utilities (login page polish)
   ============================================================ */

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-y-0 { top: 0; bottom: 0; }
.right-0 { right: 0; }
.right-2 { right: 0.5rem; }
.top-1\/2 { top: 50%; }

/* Square sizing (so logo + badges render as intended) */
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-11 { width: 2.75rem; }
.h-11 { height: 2.75rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-14 { width: 3.5rem; }

/* Vertical rhythm */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Padding */
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }

/* Text transform */
.uppercase { text-transform: uppercase; }

/* Rounding */
.rounded-xl { border-radius: 1rem; }
.rounded-\[28px\] { border-radius: 28px; }
.rounded-\[32px\] { border-radius: 32px; }

/* Radius corners on small screens (stacked card) */
@media (max-width: 1024px) {
  .lg\:rounded-l-\[32px\] { border-top-left-radius: 0; border-bottom-left-radius: 0; }
}

/* Misc */
.leading-tight { line-height: 1.25; }
.select-none { user-select: none; }
.cursor-pointer { cursor: pointer; }

/* Focus rings */
.focus\:border-sky-500:focus { border-color: #0ea5e9; }
.focus\:ring-sky-100:focus { box-shadow: 0 0 0 4px #e0f2fe; }
.focus\:ring-sky-200:focus { box-shadow: 0 0 0 4px #bae6fd; }

/* Remove default black focus outline on buttons; rely on rings instead */
button:focus { outline: none; }

/* Smooth, tactile transitions */
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.hover\:-translate-y-px:hover { transform: translateY(-1px); }
.active\:translate-y-0:active { transform: translateY(0); }

/* Hover helpers */
.hover\:bg-slate-100:hover { background-color: #f1f5f9; }
.hover\:text-slate-700:hover { color: #334155; }
.hover\:text-slate-900:hover { color: #0f172a; }
