/* Base Reset and Body */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



/* ---- Container (Box) Styling ---- */
.container {
  max-width: 400px;                /* Define max-width for the box */
  background-color: #fff;          /* White background for the content */
  margin: 50px auto;               /* Center horizontally with margin */
  padding: 40px;                   /* Increased padding for better spacing */
  border-radius: 10px;             /* Refined rounded corners */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); /* Smoother shadow */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
  transform: translateY(-2px);     /* Light lift effect on hover */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Headings within the container */
.container h2 {
  font-weight: 600;
  color: #222;
  margin-bottom: 1.5rem;
}

/* Form Styles */
.container form {
  display: flex;
  flex-direction: column;
}

.container form input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.container form input:focus {
  border-color: #0e1167;
  outline: none;
}

.container form button {
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  background-color: #0e1167;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.container form button:hover {
  background-color: #0c0e50;
}

/* Additional Text & Links within container */
.container p {
  font-size: 0.9rem;
  margin-top: 1rem;
}

.container a {
  color: #0e1167;
  text-decoration: none;
}

.container a:hover {
  text-decoration: underline;
}

/* === Message Styling === */
.message-box {
    margin-top: 10px;
    font-size: 16px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
}

.message-box.success {
    background-color: #e7f9ed;
    color: #2c7a4b;
    border: 1px solid #2c7a4b;
}

.message-box.error {
    background-color: #fde8e8;
    color: #a94442;
    border: 1px solid #a94442;
}


/* Remove arrows from number inputs across browsers */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

.remember-container {
  display: flex;
  justify-content: center; /* 👈 centers horizontally */
  margin: 12px 0 20px 0;
}

.remember-container label {
  display: inline-flex;
  align-items: center;      /* 👈 aligns text + checkbox vertically */
  gap: 8px;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}

.remember-container input[type="checkbox"] {
  transform: scale(1.2);
  margin: 0;
  vertical-align: middle;
  cursor: pointer;
}

.form-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}

.form-container h2 {
    margin-bottom: 20px;
    color: #0e1167;
}

.form-container input[type="email"],
.form-container input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.form-container button {
    background-color: #0e1167;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
}

.form-container button:hover {
    background-color: #1c2687;
}

/* Message styling */
.form-container .error {
    color: #f44336;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 15px;
    font-size: 14px;
}


.form-container .success {
    color: #4CAF50;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 15px;
    font-size: 14px;
}


.form-container a {
    display: inline-block;
    margin-top: 15px;
    color: #0e1167;
    text-decoration: underline;
}

.form-container a:hover {
    color: #1c2687;
}

.forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.forgot-link {
    color: #0e1167;
    text-decoration: underline;
}

.forgot-link:hover {
    color: #1c2687;
}

.password-rules {
    list-style: none;
    padding-left: 0;
    margin: 10px 0 20px;
    font-size: 14px;
}

.password-rules li {
    margin-bottom: 5px;
}

.password-rules li.valid {
    color: green;
}

.password-rules li.invalid {
    color: red;
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.password-container input {
    flex: 1;
    padding-right: 40px; /* space for the icon */
}

.toggle-password {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #444;
    pointer-events: all;
    padding-bottom: 12px;
}

/* LTR layout (English): icon on the right */
:dir(ltr) .toggle-password {
    right: 10px;
    left: auto;
}

/* RTL layout (Arabic): icon on the left */
:dir(rtl) .toggle-password {
    left: 10px;
    right: auto;
}


input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-textfield-decoration-container {
    display: none !important;
}

.form-toast {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    display: none;
    transition: opacity 0.3s ease;
}

.toast-success {
    background-color: #4CAF50;
    color: white;
}

.toast-error {
    background-color: #f44336;
    color: white;
}

/* === Forgot Password Tweaks === */

#reset-btn[disabled] {
  cursor: not-allowed;
    opacity: 0.6;
}

#reset-message {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #0e1167;
}








