* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;

  background: #f4f6f9;

  color: #333;
}

.login-container {
  min-height: 100vh;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 30px 20px;
}

.login-card {
  width: 100%;

  max-width: 430px;

  background: white;

  padding: 38px 40px;

  border-radius: 12px;

  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.login-header {
  text-align: center;

  margin-bottom: 30px;
}

.logo {
  font-size: 42px;

  margin-bottom: 10px;
}

.login-header h1 {
  color: #003366;

  font-size: 25px;

  margin-bottom: 6px;
}

.login-header p {
  color: #777;

  font-size: 14px;
}

.error-message {
  background: #f8d7da;

  color: #842029;

  border: 1px solid #f5c2c7;

  padding: 12px 15px;

  border-radius: 6px;

  font-size: 14px;

  margin-bottom: 20px;

  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;

  color: #444;

  font-size: 14px;

  font-weight: 600;

  margin-bottom: 7px;
}

.form-group input {
  width: 100%;

  padding: 12px 13px;

  border: 1px solid #d5d9de;

  border-radius: 6px;

  font-size: 14px;

  outline: none;

  transition: 0.2s;
}

.form-group input:focus {
  border-color: #003366;

  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.08);
}

.login-btn {
  width: 100%;

  border: none;

  background: #003366;

  color: white;

  padding: 12px;

  border-radius: 6px;

  font-size: 15px;

  font-weight: 600;

  cursor: pointer;

  transition: 0.2s;

  margin-top: 5px;
}

.login-btn:hover {
  background: #00264d;
}

.register-link {
  text-align: center;

  margin-top: 22px;

  color: #666;

  font-size: 14px;
}

.register-link a {
  color: #003366;

  font-weight: 600;

  text-decoration: none;
}

.register-link a:hover {
  text-decoration: underline;
}

.staff-link {
  text-align: center;

  margin-top: 16px;

  padding-top: 16px;

  border-top: 1px solid #eee;

  color: #777;

  font-size: 13px;
}

.staff-link a {
  color: #003366;

  font-weight: 600;

  text-decoration: none;
}

.staff-link a:hover {
  text-decoration: underline;
}

.back-link {
  text-align: center;

  margin-top: 18px;

  font-size: 13px;
}

.back-link a {
  color: #777;

  text-decoration: none;
}

.back-link a:hover {
  color: #003366;
}

@media (max-width: 500px) {
  .login-container {
    padding: 20px 15px;
  }

  .login-card {
    padding: 30px 22px;
  }

  .login-header h1 {
    font-size: 22px;
  }
}

/* =========================
   FORGOT PASSWORD LINK
========================= */

.forgot-password {
    text-align: right;
    margin-top: 7px;
}

.forgot-password a {
    color: #003366;
    text-decoration: underline;
    font-size: 13px;
    font-weight: 600;
}

.forgot-password a:hover {
    text-decoration: underline;
}


/* =========================
   FORGOT PASSWORD
========================= */

.auth-container {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px 20px;
}


.auth-card {
    width: 100%;
    max-width: 430px;

    background: #ffffff;

    padding: 40px;

    border-radius: 14px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);

    text-align: center;
}


.auth-logo {
    font-size: 42px;

    margin-bottom: 10px;
}


.auth-card h1 {
    color: #003366;

    font-size: 24px;

    margin-bottom: 8px;
}


.auth-card h2 {
    color: #333;

    font-size: 21px;

    margin-bottom: 12px;
}


.auth-description {
    color: #777;

    font-size: 14px;

    line-height: 1.6;

    margin-bottom: 25px;
}


/* =========================
   FORM
========================= */

.form-group {
    text-align: left;

    margin-bottom: 20px;
}


.form-group label {
    display: block;

    font-size: 14px;

    font-weight: 600;

    color: #444;

    margin-bottom: 7px;
}


.form-group input {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid #d5d9df;

    border-radius: 7px;

    font-size: 14px;

    outline: none;

    transition: border-color 0.2s, box-shadow 0.2s;

    box-sizing: border-box;
}


.form-group input:focus {
    border-color: #003366;

    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.08);
}


/* =========================
   BUTTON
========================= */

.auth-button {
    width: 100%;

    padding: 12px 16px;

    background: #003366;

    color: #ffffff;

    border: none;

    border-radius: 7px;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition: background 0.2s;
}


.auth-button:hover {
    background: #00264d;
}


/* =========================
   MESSAGES
========================= */

.success-message {
    background: #eaf7ee;

    color: #246b3c;

    border: 1px solid #bfe3c8;

    border-radius: 7px;

    padding: 11px 13px;

    font-size: 13px;

    margin-bottom: 20px;

    line-height: 1.5;
}


.error-message {
    background: #fdecec;

    color: #a33a3a;

    border: 1px solid #f2c3c3;

    border-radius: 7px;

    padding: 11px 13px;

    font-size: 13px;

    margin-bottom: 20px;

    line-height: 1.5;
}


/* =========================
   FOOTER LINK
========================= */

.auth-footer {
    margin-top: 22px;

    padding-top: 18px;

    border-top: 1px solid #eeeeee;
}


.auth-footer a {
    color: #003366;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;
}


.auth-footer a:hover {
    text-decoration: underline;
}