* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: #f2f4f8;
  color: #172033;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
}

.card {
  width: 100%;
  max-width: 720px;
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

/* LOGO */

.logo-container {
  text-align: center;
  margin-bottom: 14px;
}

.jendol-logo {
  display: block;
  width: 135px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 9px;
}

.company-name {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #172033;
}

/* HEADING */

h1 {
  margin: 8px 0 4px;
  text-align: center;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: #172033;
}

.period {
  margin: 0 0 15px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #536dfe;
}

.subtitle {
  max-width: 500px;
  margin: 0 auto 24px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: #667085;
}

/* PIN FORM */

label[for="pin"] {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #344054;
}

#pin {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #cfd6e4;
  border-radius: 10px;
  background: #ffffff;
  color: #172033;
  font-size: 17px;
  font-weight: 600;
  outline: none;
  text-align: center;
  letter-spacing: 2px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#pin::placeholder {
  color: #98a2b3;
  font-weight: 400;
  letter-spacing: 0;
}

#pin:focus {
  border-color: #536dfe;
  box-shadow: 0 0 0 4px rgba(83, 109, 254, 0.12);
}

/* BUTTON */

#checkBtn {
  width: 100%;
  height: 52px;
  margin-top: 13px;
  border: none;
  border-radius: 10px;
  background: #172033;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

#checkBtn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

#checkBtn:active {
  transform: translateY(0);
}

#checkBtn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* MESSAGE */

.message {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

/* RESULT */

.result {
  margin-top: 24px;
  padding: 18px;
  border-radius: 14px;
  background: #f8f9ff;
  border: 1px solid #dce2ff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.rotation-title {
  margin: 0 0 15px;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

/* STAFF NAME */

.staff-info {
  margin: 0 0 18px;
  padding: 15px;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  text-align: center;
}

.staff-label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.staff-name {
  display: block;
  font-size: 21px;
  font-weight: 900;
  color: #172033;
}

/* ROTATION TABLE */

.rotation-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 11px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.rotation-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.rotation-table th,
.rotation-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
  text-align: center;
}

.rotation-table th {
  background: #f5f7ff;
  color: #172033;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.rotation-table td {
  color: #344054;
  font-size: 14px;
  font-weight: 600;
}

.rotation-table tbody tr:last-child td {
  border-bottom: none;
}

.rotation-table tbody tr:hover {
  background: #fafbff;
}

/* NOTICE */

.notice {
  margin: 20px 0 0;
  text-align: center;
  font-size: 12px;
  color: #98a2b3;
}

/* PHONE DISPLAY */

@media (max-width: 600px) {

  body {
    padding: 10px;
    align-items: flex-start;
  }

  .card {
    margin-top: 5px;
    padding: 21px 14px;
    border-radius: 16px;
  }

  .jendol-logo {
    width: 120px;
  }

  .company-name {
    font-size: 13px;
  }

  h1 {
    font-size: 22px;
  }

  .period {
    font-size: 14px;
    margin-bottom: 13px;
  }

  .subtitle {
    font-size: 13px;
    margin-bottom: 20px;
  }

  #pin {
    height: 50px;
    font-size: 17px;
  }

  #checkBtn {
    height: 50px;
    font-size: 15px;
  }

  .result {
    padding: 13px;
  }

  .rotation-title {
    font-size: 18px;
  }

  .staff-name {
    font-size: 19px;
  }

 .rotation-table {
  min-width: 600px;
}

  .rotation-table th {
    font-size: 11px;
  }

  .rotation-table td {
    font-size: 13px;
  }

 .rotation-table th,
.rotation-table td {
  padding: 12px 14px;
  vertical-align: middle;
}

}
