/* BASE & RESET */

:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: #1a1a1a;
  background: #f5f7fb;
  background-image: url('./images/MR_MIRA_KV_1920x1080_zoomed.jpg');
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

h1 {
  margin: 0;
  font-size: 2.2rem;
  text-align: center;
}

p {
  margin: 0.65rem 0 0;
  color: #4f5969;
}


/* LAYOUT */

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.hidden {
  display: none;
}
/* CARD */

.card {
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  border: 1px solid #dfe3eb;
  padding: 2.75rem 3rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.register-card {
 max-width: 760px;
}

#logo {
  display: block;
  margin: 0 auto 2.5rem;
  height: 50px;
}


/* LOGIN BUTTON */

.btn {
  border: 0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, opacity 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:hover {
  opacity: 0.95;
}

.btn-primary {
  background: #3350b8;
  color: #ffffff;
}

.btn-secondary {
  background: #e9edf5;
  color: #1a2d4f;
}

#login-btn {
  width: 90%;
  font-size: 1.8rem;
  display: block;
  margin: 0 auto;
}


/* ACTION LINKS (Register / Employee) */

.actions {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.sub-actions {
  display: grid;
  gap: 0;
  width: fit-content;
  margin: 0 auto;
}

.action-link {
  display: block;
  text-decoration: none;
  color: #3350b8;
  font-size: 1.05rem;
  font-weight: 500;
  text-align: left;
  transition: color 0.12s ease;
}

.action-link:hover {
  color: #1a2d4f;
}

.action-link .arrow {
  font-size: 2.8rem;
  line-height: 1;
  vertical-align: middle;
  position: relative;
  top: -0.1em;
  margin-right: 0.3rem;
}


/* TAGLINE (below card) */

.tagline {
  width: 100%;
  max-width: 500px;
  margin-top: 2rem;
  color: #ffffff;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
}


/* REGISTRATION FORM */

.form {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.field {
  display: flex;
  flex-direction: column;
}


.form label {
  font-size: 0.92rem;
  color: #2e3642;
}

.form input {
  border: 1px solid #cfd7e5;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.form input:focus {
  outline: 2px solid #b9d1ff;
  outline-offset: 1px;
}

/* MANUAL CHOICE */


.manual-row {
 display: grid;
 grid-template-columns: 220px 1fr;
 align-items: center;
 gap: 1rem;
}


.manual-row.has-error {
 border-left: 3px solid #c62828;
 padding-left: 0.75rem;
}


.manual-label {
 margin: 0;
 font-weight: 500;
 color: #2e3642;
}


.manual-options {
 display: flex;
 gap: 0.75rem;
 flex-wrap: wrap;
}


.manual-options input[type="radio"] {
 display: none;
}


.manual-option {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-height: 42px;
 padding: 0.7rem 1rem;
 border: 1px solid #cfd7e5;
 border-radius: 999px;
 background: #f8faff;
 color: #2e3642;
 font-size: 0.95rem;
 font-weight: 600;
 cursor: pointer;
 margin-bottom: 0;
 white-space: nowrap;
 transition: all 0.15s ease;
}


.manual-option:hover {
 border-color: #3350b8;
 background: #eef3ff;
}


.manual-options input[type="radio"]:checked + .manual-option {
 background: #3350b8;
 color: #ffffff;
 border-color: #3350b8;
}


/* CHECKBOX GROUPS */


.checkbox-group {
 border: none;
 padding: 0;
 margin: 0;
}


.checkbox-group legend {
 font-size: 0.92rem;
 font-weight: 600;
 color: #2e3642;
 margin-bottom: 0.75rem;
}


.checkbox-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 0.65rem 1rem;
}


.checkbox-grid.compact {
 grid-template-columns: repeat(3, auto);
}


.checkbox-grid label {
 display: flex;
 align-items: center;
 gap: 0.5rem;
 margin: 0;
 font-size: 0.92rem;
 color: #2e3642;
}


.checkbox-grid input[type="checkbox"] {
 margin: 0;
}


.checkbox-group.has-error {
 border-left: 3px solid #c62828;
 padding-left: 0.75rem;
}


.group-error {
 min-height: 1rem;
 margin: 0.5rem 0 0;
 color: #c62828;
 font-size: 0.86rem;
}




/* LINKS */


.link {
 display: inline-block;
 margin-top: 1rem;
 color: #1f6feb;
 text-decoration: none;
 font-weight: 600;
}


.link:hover {
  text-decoration: underline;
}


.note {
  margin-top: 1rem;
  font-size: 0.9rem;
}




/* RESPONSIVE */


@media (max-width: 768px) {
 .card,
 .register-card {
   max-width: 100%;
   padding: 2rem 1.5rem;
 }


 .form-row {
   grid-template-columns: 1fr;
 }


 .manual-row {
   grid-template-columns: 1fr;
   align-items: start;
 }


 .checkbox-grid,
 .checkbox-grid.compact {
   grid-template-columns: 1fr;
 }
}