/* Body & Section */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; 
  margin: 0;
  padding: 0;
  overflow: hidden; 
}

.auth-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%; 
  padding: 0; 
  box-sizing: border-box;
}

/* Form */
.auth-form {
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
}

.auth-form h2 {
  text-align: center;
  color: #2e3a70;
  margin-bottom: 6px;
  font-size: 1.6rem;
  font-weight: 600;
}

/* Input Groups */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group .icon {
  position: absolute;
  left: 10px;
  color: #2e3a70;
  font-size: 1rem;
}

.input-group input {
  width: 100%;
  padding: 10px 10px 10px 36px;
  border: 1.3px solid #bbb;
  border-radius: 10px;
  font-size: 0.9rem;
  background: #ffffff;
  transition: all 0.3s;
}

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

/* Password Toggle */
.password-group .toggle-password {
  position: absolute;
  right: 12px;
  cursor: pointer;
  color: #2e3a70;
  transition: color 0.3s;
  font-size: 0.9rem;
}

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

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

button:hover {
  background: linear-gradient(135deg, #3756e4, #2e3a70);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(55, 86, 228, 0.35);
}

/* Footer Link */
.switch-auth {
  text-align: center;
  font-size: 0.85rem;
  color: #555;
  margin-top: 2px;
}

.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;
}

/* 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);
}

.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;
}