/* ============================================================
   BOR-MASTEN.FROM.HR — main.css
   ============================================================ */

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

:root {
  --primary:       #2563eb;
  --primary-dark:  #1e40af;
  --primary-light: #dbeafe;
  --accent:        #f59e0b;
  --success:       #16a34a;
  --error:         #dc2626;
  --info:          #0891b2;
  --text:          #1e293b;
  --text-muted:    #64748b;
  --border:        #e2e8f0;
  --bg:            #f8fafc;
  --white:         #ffffff;
  --radius:        8px;
  --shadow:        0 4px 24px rgba(0,0,0,0.10);
  --font:          'Inter', system-ui, -apple-system, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* --- Auth layout --- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 1rem;
}

.auth-container {
  width: 100%;
  max-width: 440px;
}

.auth-box {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
}

.auth-logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.25rem;
}

.auth-box h2 {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--text);
}

.form-group label small {
  font-weight: 400;
  color: var(--text-muted);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-check { display: flex; align-items: center; gap: 0.5rem; }
.form-check label { margin-bottom: 0; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.form-check input[type="checkbox"] { width: 1rem; height: 1rem; cursor: pointer; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; color: var(--white); }

.btn-secondary { background: var(--border); color: var(--text); }
.btn-secondary:hover { background: #cbd5e1; text-decoration: none; }

.btn-danger { background: var(--error); color: var(--white); }
.btn-danger:hover { background: #b91c1c; text-decoration: none; color: var(--white); }

.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #15803d; text-decoration: none; color: var(--white); }

.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-full { width: 100%; margin-top: 0.5rem; }

/* --- Alerts --- */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.alert-error   { background: #fef2f2; color: var(--error); border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }
.alert-info    { background: #ecfeff; color: var(--info); border: 1px solid #a5f3fc; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* --- Auth links & lang switch --- */
.auth-links {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.lang-switch {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
}

.lang-switch a {
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  color: var(--text-muted);
  font-weight: 500;
}

.lang-switch a.active,
.lang-switch a:hover {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); font-size: 0.875rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* --- Responsive --- */
@media (max-width: 480px) {
  .auth-box { padding: 2rem 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
}
