/* ========================================
   Authentication Pages Styles
   ======================================== */

:root {
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Base Page Layout */
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top left, rgba(17, 46, 59, 0.03), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(239, 234, 104, 0.05), transparent 50%),
    linear-gradient(135deg, #f8ffe3 0%, #a2b5dc 100%);
  display: flex;
  justify-content: center;
  padding: 2rem;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.auth-container {
  width: 100%;
  max-width: 500px;
}

.auth-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Header Section */
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  margin-bottom: 1.5rem;
}

/* Form Elements */
.auth-form {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-gray-300);
  border-radius: 6px;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input:invalid:not(:focus):not(:placeholder-shown) {
  border-color: var(--color-danger);
}

.form-checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

/* Links */
.auth-link {
  color: #0a58ca;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
  opacity: 0.8;
}

.auth-link:hover {
  color: #0a58ca;
  text-decoration: underline;
  opacity: 1;
}

/* OAuth Section */

.oauth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem;
  border: 1px solid var(--color-gray-300);
  border-radius: 6px;
  background: white;
  color: var(--color-gray-700);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.oauth-button:hover {
  background: var(--color-gray-50);
  border-color: var(--color-gray-400);
}

.oauth-icon {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-xl);
}

/* Divider */
.auth-divider {
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--color-gray-200);
}

.divider-text {
  color: var(--color-gray-500);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer */
.auth-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-gray-200);
}

/* Message Areas */
.auth-error-message,
.auth-success-message {
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.auth-error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.auth-success-message {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

/* Password Strength Indicators */
.password-strength {
  margin-top: 0.5rem;
  height: 4px;
  background: var(--color-gray-200);
  border-radius: 2px;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  transition: all 0.3s;
}

.password-requirements {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: var(--color-gray-50);
  border-radius: 6px;
  font-size: 0.75rem;
}

.requirement {
  color: var(--color-gray-600);
  margin-bottom: 0.25rem;
}

.requirement.met {
  color: var(--color-success);
}

.footnote {
  font-size: var(--font-size-xs);
  color: var(--color-gray-600);
  text-align: center;
}

.footnote + .footnote {
  margin-top: 0.5rem;
}
