/* =============================
   Page Layout
============================= */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.auth-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* =============================
   Form Styling
============================= */
form {
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Title */
.form-title {
  text-align: center;
  color: #2e3a70;
  margin-bottom: 10px;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

/* Labels */
label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

/* Input Fields */
input {
  padding: 9px 10px;
  border: 1px solid #bbb;
  border-radius: 8px;
  font-size: 0.88rem;
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus {
  border-color: #4a73ff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 115, 255, 0.15);
}

/* Password Wrapper */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 38px;
}

/* Eye Icon */
.toggle-password {
  position: absolute;
  right: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  user-select: none;
  color: #2e3a70;
  transition: color 0.3s;
}

.toggle-password:hover {
  color: #3756e4;
}

/* =============================
   Forgot Password
============================= */
.forgot-password {
  text-align: right;
  margin-top: -5px;
  margin-bottom: 5px;
}

.forgot-password a {
  font-size: 0.85rem;
  color: #4a73ff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-password a:hover {
  text-decoration: underline;
  color: #3756e4;
}

/* =============================
   Buttons
============================= */
button {
  padding: 12px;
  background: linear-gradient(135deg, #4a73ff, #3756e4);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 5px;
}

button:hover {
  background: linear-gradient(135deg, #3756e4, #2e3a70);
  transform: translateY(-2px);
}

/* =============================
   Auth Links (Switch)
============================= */
.switch-auth {
  text-align: center;
  font-size: 0.85rem;
  color: #555;
  margin-top: 8px;
}

.switch-auth a {
  color: #4a73ff;
  font-weight: 600;
  text-decoration: none;
}

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

/* =============================
   Flash Messages
============================= */
.flash-messages {
  margin-bottom: 10px;
}

.alert {
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 8px;
}

.alert-success {
  background: #e6ffed;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.alert-info {
  background: #e8f1ff;
  color: #3756e4;
  border: 1px solid #90caf9;
}

.alert-danger {
  background: #ffeaea;
  color: #d32f2f;
  border: 1px solid #ef9a9a;
}

.alert-warning {
  background: #fff8e1;
  color: #e65100;
  border: 1px solid #ffcc80;
}

.oauth-divider {
  text-align: center;
  margin: 20px 0 10px;
  color: #888;
  font-size: 14px;
  position: relative;
}

.oauth-divider::before,
.oauth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #ddd;
}

.oauth-divider::before {
  left: 0;
}

.oauth-divider::after {
  right: 0;
}

/* Google button */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  background-color: #fff;
  color: #555;
  border: 1px solid #ddd;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.google-btn img {
  width: 20px;
  height: 20px;
}

.google-btn:hover {
  background-color: #f8f8f8;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
