/* ==========================================================================
   Regjistrohu si Punonjës — Register Employee (accounts app)
   Fully self-contained: no @import, no dependency on the staffing app.
   ========================================================================== */

:root {
  --ink: #14201A;
  --ink-soft: #4B5A52;
  --paper: #F7F5EF;
  --paper-raised: #FFFFFF;
  --line: #E4E0D4;

  --accent: #3FAE8F;
  --accent-deep: #1A6E52;
  --accent-tint: #E6F7F1;

  --warn: #E7622B;
  --warn-tint: #FBEEE6;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-raised: 0 4px 16px -4px rgba(20, 32, 26, 0.12), 0 16px 40px -20px rgba(20, 32, 26, 0.18);
  --transition-base: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ==========================================================================
   Auth shell
   ========================================================================== */

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
  padding: 32px 30px;
}

.auth-card__mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 20px;
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Form
   ========================================================================== */

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--paper);
  box-sizing: border-box;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper-raised);
}

.field.has-error input {
  border-color: var(--warn);
}

.errors {
  background: var(--warn-tint);
  color: var(--warn);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(231, 98, 43, 0.18);
}

.form-errors {
  margin-bottom: 16px;
}

.field .errors {
  margin-top: 6px;
}

/* ---- File input (photo upload) ---- */

.field input[type="file"] {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: var(--ink-soft);
  background: var(--paper);
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.field input[type="file"]:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.field input[type="file"]::file-selector-button {
  padding: 6px 12px;
  margin-right: 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-base);
}

.field input[type="file"]::file-selector-button:hover {
  background: var(--accent-deep);
}

/* ---- Checkbox row (terms_accepted) ---- */

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.checkbox-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--accent-deep);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-row label {
  margin: 0;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-row .errors {
  margin-top: 8px;
  width: 100%;
}

/* ==========================================================================
   Button
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  width: 100%;
  transition: background var(--transition-base), transform var(--transition-base);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--accent-deep);
}

/* ==========================================================================
   Switch links
   ========================================================================== */

.switch-links {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.9;
}

.switch-links a {
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: none;
}

.switch-links a:hover {
  text-decoration: underline;
}