@font-face {
  font-family: "Quicksand";
  font-weight: 400;
  src: url("../css/fonts/Quicksand-Regular.woff2") format("woff2"),
       url("../css/fonts/Quicksand-Regular.woff") format("woff");
}

@font-face {
  font-family: "Quicksand";
  font-weight: 500;
  src: url("../css/fonts/Quicksand-Medium.woff2") format("woff2"),
       url("../css/fonts/Quicksand-Medium.woff") format("woff");
}

@font-face {
  font-family: "Quicksand";
  font-weight: 600;
  src: url("../css/fonts/Quicksand-SemiBold.woff2") format("woff2"),
       url("../css/fonts/Quicksand-SemiBold.woff") format("woff");
}

@font-face {
  font-family: "Quicksand";
  font-weight: 700;
  src: url("../css/fonts/Quicksand-Bold.woff2") format("woff2"),
       url("../css/fonts/Quicksand-Bold.woff") format("woff");
}

.login-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-family: "Quicksand", Sans-serif;
  color: #333;
  background: #d4d3d3;
}

.login-page * {
  box-sizing: border-box;
}

/* Card */
.login-page .login-card {
  width: 100%;
  max-width: 24rem;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
}

@media (min-width: 480px) {
  .login-page .login-card {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    padding: 2.5rem 2rem;
  }
}

/* Title */
.login-page .login-title {
  text-align: center;
  margin: 0 0 2rem;
  padding: 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: normal;
  color: #1b486a;
}

/* Messages */
.login-page .tip,
.login-page .error {
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin: 0 0 1.5rem;
  background-image: none;
}

.login-page .tip {
  background: #f5f5f5;
  color: #4a4a4a;
  display: flex;
  gap: 0.5rem;
}

.login-page .tip .fa-lightbulb {
  color: #4985B2;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.login-page .error {
  background: #fef2f2;
  color: #b91c1c;
}

.login-page .error a {
  color: #b91c1c;
  text-decoration: underline;
}

/* Form */
.login-page form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-page .field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.login-page label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4a4a4a;
}

.login-page input[type="text"],
.login-page input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  color: #333;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.login-page input[type="text"]:focus,
.login-page input[type="password"]:focus {
  outline: none;
  border-color: #4985B2;
  box-shadow: 0 0 0 3px rgba(73, 133, 178, 0.15);
}

/* Button */
.login-page button[type="submit"] {
  width: 100%;
  padding: 0.875rem;
  background: #1b486a;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0.25rem;
}

.login-page button[type="submit"]:hover {
  background: #153a55;
}

.login-page button[type="submit"]:focus-visible {
  outline: 2px solid #4985B2;
  outline-offset: 2px;
}

/* Footer */
.login-page footer {
  padding-top: 1rem;
  font-size: 0.75rem;
  color: #666;
  text-align: center;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.login-page footer a {
  color: #4985B2;
  text-decoration: underline;
}

.login-page footer a:hover {
  color: #1b486a;
}
