* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0b0d10;
  color: #f5f7fa;
}

button,
input,
select {
  font: inherit;
}

.wrap {
  width: min(1050px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.hidden {
  display: none !important;
}

/* CARDS */
.card {
  background: #15181d;
  border: 1px solid #252a32;
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

/* LOGIN */
.auth {
  max-width: 410px;
  margin: 100px auto;
  padding: 36px 32px;
}

.auth h1 {
  text-align: center;
  margin: 0 0 30px;
  font-size: 30px;
  color: #ffffff;
}

label {
  display: block;
  font-weight: 700;
  margin: 14px 0;
  color: #d9dee7;
}

/* INPUTS */
input,
select {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid #343a46;
  border-radius: 10px;
  background: #0f1217;
  color: #ffffff;
  outline: none;
  transition: 0.2s;
}

input:focus,
select:focus {
  border-color: #4c7dff;
  background: #11151b;
  box-shadow: 0 0 0 3px rgba(76, 125, 255, 0.15);
}

/* BUTTONS */
button {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
  background: #356df3;
  color: white;
  font-weight: 700;
  transition: 0.2s;
}

button:hover {
  background: #4a7cff;
  transform: translateY(-1px);
}

.auth form > button {
  width: 100%;
  margin-top: 12px;
}

.link {
  width: 100%;
  margin-top: 12px;
  background: transparent;
  color: #6d96ff;
}

.link:hover {
  background: transparent;
  color: #91adff;
}

/* HEADER */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.top h1 {
  margin: 0 0 7px;
  color: white;
}

.top p {
  margin: 0;
  color: #9299a6;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* SUMMARY */
.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.summary div {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  background: #0f1217;
  border: 1px solid #272c35;
}

.summary span,
.summary b {
  display: block;
}

.summary span {
  color: #8f96a3;
}

.summary b {
  margin-top: 7px;
  font-size: 25px;
  color: #ffffff;
}

/* WORK DAYS */
.day {
  background: #0f1217;
  border: 1px solid #292e37;
  padding: 13px 15px;
  margin-top: 10px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day:hover {
  background: #181c22;
}

/* DELETE / LOGOUT */
.danger,
.delete {
  background: #d9363e;
}

.danger:hover,
.delete:hover {
  background: #ef4444;
}

/* MESSAGES */
.error {
  min-height: 20px;
  color: #ff5c64;
}

.success {
  min-height: 20px;
  color: #4ade80;
}

.card h2 {
  margin-top: 0;
  color: #ffffff;
}

/* DATE ICON */
input[type="date"] {
  color-scheme: dark;
}

/* MOBILE */
@media (max-width: 700px) {
  .grid,
  .summary {
    grid-template-columns: 1fr;
  }

  .top {
    align-items: flex-start;
    flex-direction: column;
  }

  .wrap {
    width: calc(100% - 20px);
    padding: 25px 0;
  }

  .auth {
    margin: 50px auto;
  }
}