/* Reset basics */
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f1f1f1;
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center; /* center horizontally */
  align-items: center;     /* center vertically */
  padding: 20px;
}

/* Container for the form */
.form-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  max-width: 400px;
  width: 100%;
  padding: 30px 40px;
  /* center vertical spacing */
  margin: 40px 0;
}

/* Inputs and selects */
input, select {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

input:focus, select:focus {
  border-color: #0077cc;
  outline: none;
}

/* Buttons */
button {
  width: 100%;
  padding: 12px;
  background: #0077cc;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

button:hover, button:focus {
  background: #005fa3;
  outline: none;
}

/* Messages */
.error {
  background: #f8d7da;
  color: #842029;
  padding: 10px 15px;
  border-radius: 5px;
  margin-bottom: 15px;
  font-weight: 600;
}

.success {
  background: #d1e7dd;
  color: #0f5132;
  padding: 10px 15px;
  border-radius: 5px;
  margin-bottom: 15px;
  font-weight: 600;
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .form-container {
    padding: 25px 20px;
    margin: 20px 10px;
    max-width: 100%;
  }
  
  input, select {
    font-size: 14px;
  }

  button {
    font-size: 16px;
  }
}
/* GENERAL PAGE STYLE */
body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #005f3c, #00a859);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* FORM CONTAINER */
.form-container {
    background: #ffffff;
    padding: 40px 35px;
    width: 380px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    animation: fadeIn .6s ease-in-out;
}

@keyframes fadeIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.form-container h2 {
    margin: 0 0 15px;
    text-align: center;
    font-size: 26px;
    color: #005f3c;
}

/* INPUT FIELDS */
.form-container input,
.form-container select {
    width: 100%;
    padding: 13px 15px;
    margin: 8px 0;
    border: 2px solid #e6e6e6;
    border-radius: 8px;
    font-size: 15px;
    transition: .25s;
}

.form-container input:focus,
.form-container select:focus {
    border-color: #00a859;
    outline: none;
    box-shadow: 0 0 5px rgba(0,168,89,0.4);
}

/* SUBMIT BUTTON */
.form-container button {
    width: 100%;
    padding: 14px;
    background: #00a859;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    margin-top: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.form-container button:hover {
    background: #007a40;
}

/* LINKS */
.form-container p {
    text-align: center;
    margin-top: 15px;
}

.form-container a {
    color: #007a40;
    text-decoration: none;
    font-weight: bold;
}
.form-container a:hover {
    text-decoration: underline;
}

/* ERROR BOX */
.error, .success {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.error {
    background: rgba(255, 0, 0, 0.12);
    border-left: 4px solid red;
    color: #b10000;
}

.success {
    background: rgba(0, 168, 89, 0.15);
    border-left: 4px solid #00a859;
    color: #006e3b;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .form-container {
        width: 90%;
        padding: 25px;
    }
}
/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ===== BACKGROUND ===== */
body {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== WRAPPER ===== */
.auth-wrapper {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* ===== CONTAINER ===== */
.auth-container {
    width: 100%;
    max-width: 400px;
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

/* ===== TITLE ===== */
.auth-container h2 {
    margin-bottom: 20px;
    color: #1e293b;
}

/* ===== INPUT ===== */
.auth-container input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
}

.auth-container input:focus {
    border-color: #2563eb;
}

/* ===== BUTTON ===== */
.auth-container button {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.auth-container button:hover {
    background: #1d4ed8;
}

/* ===== MESSAGE ===== */
.info {
    background: #d1fae5;
    color: #065f46;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ===== LINK ===== */
.bottom-link {
    margin-top: 15px;
}

.bottom-link a {
    color: #2563eb;
    text-decoration: none;
}

.bottom-link a:hover {
    text-decoration: underline;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 600px) {

    .auth-container {
        width: 95%;
        padding: 20px;
        border-radius: 12px;
    }

    .auth-container h2 {
        font-size: 20px;
    }

    .auth-container input,
    .auth-container button {
        font-size: 16px;
        padding: 14px;
    }
}
/* ===== RESET GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ===== BACKGROUND ===== */
body {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== WRAPPER ===== */
.auth-container {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    text-align: center;
}

/* ===== TITLE ===== */
.auth-container h2 {
    margin-bottom: 20px;
    color: #1e293b;
}

/* ===== INPUT FIELDS ===== */
.auth-container input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
    font-size: 15px;
}

.auth-container input:focus {
    border-color: #2563eb;
}

/* ===== BUTTON ===== */
.auth-container button {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
}

.auth-container button:hover {
    background: #1d4ed8;
}

/* ===== ERROR MESSAGE ===== */
.error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* ===== SUCCESS MESSAGE (from session msg) ===== */
.info {
    background: #dcfce7;
    color: #166534;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 600px) {

    body {
        padding: 15px;
    }

    .auth-container {
        width: 100%;
        padding: 20px;
        border-radius: 12px;
    }

    .auth-container h2 {
        font-size: 20px;
    }

    .auth-container input,
    .auth-container button {
        font-size: 16px;
        padding: 14px;
    }
}