* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #f4f6f9, #eef1f5);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== LAYOUT ===== */
.login-wrapper {
    display: flex;
    gap: 70px;
    padding: 40px;
    max-width: 1100px;
    width: 100%;
    align-items: center;
}

/* ===== LEFT TEXT ===== */
.text_primary {
    max-width: 520px;
}

.text_primary h1 {
    color: maroon;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.text_primary h2 {
    font-weight: 400;
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

.text_main {
    background: linear-gradient(90deg, #DACE4E, maroon);
    -webkit-background-clip: text;
    color: transparent;
}

/* ===== FORM CARD ===== */
.form-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    padding: 40px 35px;
    max-width: 380px;
    width: 100%;
    text-align: center;
}

/* Logo */
.logo {
    width: 220px;
    margin-bottom: 20px;
}

/* Title */
.form-container h2 {
    margin-bottom: 25px;
    font-weight: 700;
    color: #333;
}

/* Inputs */
.form-container input[type="text"],
.form-container input[type="password"] {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-container input::placeholder {
    color: #aaa;
}

/* Focus effect */
.form-container input:focus {
    outline: none;
    border-color: maroon;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.15);
}

/* Button */
.form-container input[type="submit"] {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    background: linear-gradient(135deg, maroon, #B33838);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-container input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(179, 56, 56, 0.35);
}

/* Password toggle */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 40%;
    right: 14px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
    transition: color 0.25s ease;
}

.toggle-password:hover {
    color: maroon;
}

.toggle-password svg {
    pointer-events: none;
}

/* Add padding so text doesn't overlap icon */
.password-wrapper input {
    padding-right: 42px;
}

/* Signup */
.signup-link {
    margin-top: 18px;
    font-size: 14px;
    color: #555;
}

.signup-link a {
    color: maroon;
    font-weight: 600;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .login-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        text-align: center;
    }

    .text_primary h1 {
        font-size: 38px;
    }
}

.forgot-password {
  text-align: right;
  margin-top: 6px;
}

.forgot-password a {
  font-size: 13px;
  color: #4f46e5;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.modal-card h3 {
  margin-bottom: 8px;
}

.modal-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
}

.modal-card input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
}

.modal-card button[type="submit"] {
  width: 100%;
  padding: 10px;
  background: maroon;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.close-btn {
  margin-top: 10px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
}

.reset-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.reset-card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.temp-pass {
  background: #f3f4f6;
  padding: 10px;
  margin: 12px 0;
  font-weight: bold;
  border-radius: 6px;
}


