.login-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  padding: 40px 20px;
}

.form-container {
  background: #ffffff;
  width: 100%;
  max-width: 450px;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.form-header h2 {
  color: var(--text-dark);
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.form-header p {
  color: var(--text-light);
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.input-field {
  position: relative;
}

.input-field i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.input-field input {
  width: 100%;
  padding: 12px 15px 12px 45px; /* Left padding for icon */
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.input-field input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 25px;
}

.forgot-link {
  color: var(--primary-color);
  font-size: 0.9rem;
  text-decoration: none;
}

.btn-submit {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-submit:hover {
  background-color: var(--secondary-color);
}

.form-footer {
  text-align: center;
  margin-top: 25px;
  border-top: 1px solid #f3f4f6;
  padding-top: 20px;
}

.form-footer p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.form-footer a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

/* Alert Boxes */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideDown 0.3s ease-out;
}

.alert i {
  font-size: 1.1rem;
}

/* Success State (Green) */
.alert-success {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* Error State (Red) */
.alert-error {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tabs Styling */
.login-tabs {
    display: flex;
    gap: 10px;
    background: #f3f4f6;
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tab-btn:hover:not(.active) {
    background: #e5e7eb;
}

/* Country Code Input */
.country-code {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dark);
    font-weight: 600;
    padding-right: 10px;
    border-right: 1px solid #e5e7eb;
}

/* Adjust input padding for country code */
#phoneNumber {
    padding-left: 65px; /* Space for +91 */
}

/* Button Text Style */
.btn-text {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 10px;
}
.btn-text:hover { color: var(--text-dark); }