/* =========================================
   AINDRIYA MEDSYS — GLOBAL DESIGN SYSTEM
   Shared tokens, base elements, auth & common UI
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand palette: deep clinical teal + warm marigold accent */
  --brand-teal-900: #08322D;
  --brand-teal-700: #0E5C53;
  --brand-teal-600: #147A6D;
  --brand-teal-100: #E3F1EE;

  --brand-amber-600: #C98A22;
  --brand-amber-500: #E2A33B;
  --brand-amber-100: #FBF0DC;

  --ink: #1B2A27;
  --body-text: #45524E;
  --muted: #6B7A76;

  --bg: #F5F8F7;
  --surface: #FFFFFF;
  --border: #DCE6E3;

  --danger: #C0392B;
  --danger-bg: #FBEAEA;
  --success: #1F8A5F;
  --success-bg: #E9F7F1;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(15, 40, 35, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 40, 35, 0.10);

  --font-heading: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body & Layout */
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--body-text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Form Styling */
form {
  width: 100%;
}

/* Layout wrapper only. Individual pages control field sizing. */
.form-wrapper {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.form-wrapper form {
  width: 100%;
}

/* Form Inputs */
input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Dropdowns default to a natural width — forcing width:100% made them
   balloon to fill an entire flex row when placed next to other fields
   (e.g. a "Work Mode" select beside Start/End Time). Pages that want a
   full-width select can still opt in via .form-wrapper/.auth-form below. */
select {
  max-width: 100%;
  min-width: 160px;
  padding: 10px 12px;
  margin-bottom: 15px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-teal-600);
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 122, 109, 0.15);
}

/* Buttons */
button {
  background-color: var(--brand-teal-700);
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

button:hover {
  background-color: var(--brand-teal-900);
}

button:active {
  transform: translateY(1px);
}

/* Headings */
h2, h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h2 {
  text-align: center;
}

/* Links */
a {
  color: var(--brand-teal-700);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-teal-900);
  text-decoration: underline;
}

/* Messages */
.error, p.error {
  color: var(--danger);
  font-weight: 600;
  padding: 12px 14px;
  margin: 15px 0;
  border-radius: var(--radius-sm);
  background-color: var(--danger-bg);
  border: 1px solid rgba(192, 57, 43, 0.35);
}

.success, .success-message {
  color: var(--success);
  font-weight: 600;
  padding: 12px 14px;
  margin: 15px 0;
  border-radius: var(--radius-sm);
  background-color: var(--success-bg);
  border: 1px solid rgba(31, 138, 95, 0.35);
}

.error-message {
  color: var(--danger);
  font-weight: 600;
}

/* Modal Overlay & Box */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 22, 20, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius-lg);
  max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow-md);
  font-family: var(--font-body);
}

.modal h3 {
  margin-top: 0;
  color: var(--brand-teal-700);
  font-family: var(--font-heading);
}

.modal button {
  background: var(--brand-teal-700);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.modal button:hover {
  background: var(--brand-teal-900);
}

/* Common utilities */
.full-width {
  width: 100%;
}

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

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 10px;
  }
}

@media (max-width: 768px) {
}
