/**
 * Enhanced Styles for OAuth Login with Role Selection
 * For file: public/css/public.css
 */

/* Main container */
.oauth-login-container {
  max-width: 480px;
  margin: 30px auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  padding: 0;
}

.oauth-login-content {
  padding: 30px;
}

.oauth-login-title {
  font-size: 26px;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 30px;
  text-align: center;
  color: #262626;
}

/* Role selection tabs */
.oauth-role-tabs {
  display: flex;
  background-color: #f7f9fc;
  margin-bottom: 0;
  border-bottom: 1px solid #e6e9ed;
}

.oauth-role-tab {
  flex: 1;
  padding: 16px 10px;
  text-align: center;
  border: none;
  background: transparent;
  color: #6e7c91;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.oauth-role-tab.active {
  background-color: #4a89dc;
  color: white;
  font-weight: 600;
}

.oauth-role-tab:first-child {
  border-top-left-radius: 10px;
}

.oauth-role-tab:last-child {
  border-top-right-radius: 10px;
}

/* Form tabs navigation */
.oauth-form-tabs {
  margin: 20px 0 25px 0;
  display: flex;
  border-bottom: 1px solid #eee;
}

.oauth-form-tab {
  flex: 1;
  padding: 12px 0;
  text-align: center;
  font-weight: 500;
  color: #6e7c91;
  cursor: pointer;
  transition: all 0.2s ease;
  background: none;
  border: none;
  position: relative;
}

.oauth-form-tab.active {
  color: #4a89dc;
  font-weight: 600;
}

.oauth-form-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #4a89dc;
}

/* OAuth login buttons */
.oauth-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.oauth-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #e1e4e8;
  background: white;
  color: #4a4a4a;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.oauth-login-button:hover {
  background-color: #f6f8fa;
}

.oauth-login-button.google {
  color: #4285F4;
}

.oauth-login-button.facebook {
  color: #3b5998;
}

.oauth-login-button.linkedin {
  color: #0077B5;
}

.oauth-icon {
  margin-right: 10px;
}

/* Form styling */
.oauth-form-field {
  margin-bottom: 20px;
}

.oauth-form-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 15px;
  color: #444;
}

.oauth-form-field input[type="text"],
.oauth-form-field input[type="email"],
.oauth-form-field input[type="password"],
.oauth-form-field input[type="date"],
.oauth-form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dfe1e6;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.2s ease;
  background-color: #fff;
}

.oauth-form-field input:focus,
.oauth-form-field select:focus {
  outline: none;
  border-color: #4a89dc;
  box-shadow: 0 0 0 2px rgba(74, 137, 220, 0.2);
}

.oauth-form-field.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.oauth-form-field.checkbox input {
  width: 18px;
  height: 18px;
}

.oauth-submit-button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background-color: #4a89dc;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 25px;
}

.oauth-submit-button:hover {
  background-color: #3b7bd2;
}

/* Helper classes */
.oauth-hidden {
  display: none !important;
}

.oauth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: #888;
  font-size: 14px;
}

.oauth-divider::before,
.oauth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #e0e0e0;
}

.oauth-divider span {
  padding: 0 15px;
}

/* Status messages */
.oauth-status {
  margin-top: 20px;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
}

.oauth-status.error {
  background-color: #fff2f0;
  color: #d32f2f;
  border: 1px solid #ffccc7;
}

.oauth-status.success {
  background-color: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
}

.oauth-status.loading {
  background-color: #e6f7ff;
  color: #1890ff;
  border: 1px solid #91d5ff;
}

/* Link styles */
.oauth-forgot-password {
  color: #4a89dc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.oauth-forgot-password:hover {
  text-decoration: underline;
}

/* Date of birth container */
.oauth-dob-container {
  margin-top: 20px;
  padding: 16px;
  border-radius: 6px;
  background-color: #f7f9fc;
  border: 1px solid #e6e9ed;
}

.oauth-dob-title {
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 8px;
  color: #444;
  font-weight: 600;
}

.oauth-dob-desc {
  font-size: 14px;
  color: #6e7c91;
  margin-bottom: 15px;
}

/* Responsive styling */
@media (max-width: 576px) {
  .oauth-login-container {
    margin: 15px;
    border-radius: 10px;
  }

  .oauth-login-content {
    padding: 20px;
  }

  .oauth-login-title {
    font-size: 22px;
    margin-bottom: 20px;
  }
}