/* ===== Base Reset ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f4f6fb;
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* ===== Shared Wrapper ===== */
.auth-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-card,
.form-container {
  background: #fff;
  width: 100%;
  max-width: 420px;
  padding: 35px 30px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  text-align: center;
}

header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 15px 8%;
}

/* LOGO CONTROL */
.logo {
  display: flex;
  align-items: center;
   margin-right: auto;
}

/* Increase logo size WITHOUT increasing space */
.logo img {
  height: 150px;       /* increase visual size */
  width: auto;
  display: block;
}


/* ===== Headings ===== */
h1,
h2 {
  font-size: 24px;
  color: #0d1b2a;
  margin-bottom: 20px;
}

/* ===== Inputs ===== */
input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  font-size: 15px;
}

input:focus {
  outline: none;
  border-color: #001f3f;
}

/* ===== Input Group (Register Name Fields) ===== */
.input-group {
  display: flex;
  gap: 10px;
}

.input-group input {
  margin-bottom: 12px;
}

/* ===== Buttons ===== */
button,
.btn-primary {
  width: 100%;
  padding: 13px;
  background-color: #001f3f;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.25s ease;
}

button:hover,
.btn-primary:hover {
  background-color: #002a63;
}

/* ===== Password Rules ===== */
.password-rules {
  text-align: left;
  font-size: 13px;
  margin: 10px 0 15px;
  color: #555;
}

.password-rules p {
  margin: 4px 0;
}

/* ===== Flash Messages ===== */
.flash-container,
.flash-messages {
  margin-bottom: 15px;
  text-align: left;
}

.flash {
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}

.flash-success { background: #e6f9ed; color: #0b6e2e; }
.flash-danger  { background: #ffe6e6; color: #c00; }
.flash-warning { background: #fff5e6; color: #b36b00; }
.flash-info    { background: #e6f0ff; color: #0047b3; }

/* ===== Links ===== */
.switch-auth,
.bottom-text {
  margin-top: 18px;
  font-size: 14px;
  color: #444;
}

.switch-auth a,
.bottom-text a,
.extra-links a {
  color: #001f3f;
  font-weight: 600;
  text-decoration: none;
}

.switch-auth a:hover,
.bottom-text a:hover,
.extra-links a:hover {
  text-decoration: underline;
}

.extra-links {
  text-align: right;
  margin-top: 8px;
}

/* ===== Mobile Responsiveness ===== */
@media (max-width: 480px) {
  .auth-card,
  .form-container {
    padding: 28px 20px;
  }

  .input-group {
    flex-direction: column;
  }

  h1,
  h2 {
    font-size: 22px;
  }

  .logo img {
    height: 150px;
  }
}

/* ===== ONLY FOR FORGOT & RESET PAGES ===== */
.auth-card-small .logo {
  width: 110px;        /* smaller logo */
  max-width: 100%;     /* prevents overflow */
  height: auto;
}

.auth-card-small .logo img {
  width: 100%;
  height: auto;
  display: block;
}
