/* OAuth Buttons - Appearance-Based Styling */

/* OAuth buttons group container */
.oauth-buttons-group {
  margin-bottom: 1.5rem;
}

/* Container for OAuth buttons */
.oauth-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Base OAuth button - Bordered rectangular button with icon and text */
.oauth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background-color: white;
  color: #374151;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

/* OAuth button hover state - Slightly elevated with subtle shadow */
.oauth-button:hover {
  border-color: #9ca3af;
  background-color: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* OAuth button active state - Pressed appearance */
.oauth-button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* OAuth button icon container - Fixed size icon holder */
.oauth-button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* OAuth button text - Centered text label */
.oauth-button-text {
  flex: 1;
  text-align: center;
}

/* Google OAuth button - White with multicolor Google icon */
.oauth-button-google {
  border-color: #4285f4;
}

.oauth-button-google:hover {
  border-color: #357ae8;
  background-color: #f8fbff;
}

/* GitHub OAuth button - Black text with GitHub's brand color accent */
.oauth-button-github {
  border-color: #24292e;
}

.oauth-button-github:hover {
  border-color: #1b1f23;
  background-color: #fafafa;
}

/* Apple OAuth button - Black with Apple's clean aesthetic */
.oauth-button-apple {
  border-color: #000000;
}

.oauth-button-apple:hover {
  border-color: #333333;
  background-color: #f5f5f5;
}

/* OAuth divider - Horizontal line with centered text */
.oauth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

/* OAuth divider line - Thin horizontal gray line */
.oauth-divider-line {
  flex: 1;
  height: 1px;
  background-color: #e5e7eb;
}

/* OAuth divider text - Centered small gray text */
.oauth-divider-text {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: lowercase;
}

/* Responsive adjustments for mobile */
@media (max-width: 640px) {
  .oauth-button {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
  }

  .oauth-button-icon {
    width: 16px;
    height: 16px;
  }

  .oauth-divider {
    margin: 1.25rem 0;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .oauth-button {
    background-color: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
  }

  .oauth-button:hover {
    background-color: #111827;
    border-color: #4b5563;
  }

  .oauth-button-google {
    border-color: #4285f4;
  }

  .oauth-button-google:hover {
    background-color: #1e3a5f;
  }

  .oauth-button-github {
    border-color: #30363d;
  }

  .oauth-button-github:hover {
    background-color: #161b22;
  }

  .oauth-button-apple {
    border-color: #333333;
  }

  .oauth-button-apple:hover {
    background-color: #0d1117;
  }

  .oauth-divider-line {
    background-color: #374151;
  }

  .oauth-divider-text {
    color: #9ca3af;
  }
}
