/**
 * El Villegas Site — Auth Modal Editorial Styles
 */

.el-villegas-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  font-family: var(--font-sans, "Plus Jakarta Sans", system-ui, -apple-system, sans-serif);
  box-sizing: border-box;
}

.el-villegas-modal-overlay * {
  box-sizing: border-box;
}

.el-villegas-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.el-villegas-modal-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.el-villegas-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background-color: #FAF9F6;
  border: 1px solid rgba(212, 212, 216, 0.8);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.el-villegas-modal-overlay.is-open .el-villegas-modal-dialog {
  transform: translateY(0) scale(1);
}

.el-villegas-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #E4E4E7;
  background: #FFFFFF;
  color: #71717A;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.el-villegas-modal-close:hover {
  background: #09090B;
  color: #FFFFFF;
  border-color: #09090B;
}

.el-villegas-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.el-villegas-modal-logo {
  height: 44px;
  width: auto;
  margin: 0 auto 8px auto;
  display: block;
}

.el-villegas-modal-tagline {
  font-family: var(--font-serif, Georgia, serif);
  font-style: italic;
  font-size: 13px;
  color: #71717A;
  margin: 0;
}

/* Tabs switcher */
.el-villegas-modal-tabs {
  display: flex;
  background: #F4F4F5;
  border-radius: 9999px;
  padding: 4px;
  margin-bottom: 20px;
}

.el-villegas-tab-btn {
  flex: 1;
  padding: 8px 16px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #71717A;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.el-villegas-tab-btn.is-active {
  background: #FFFFFF;
  color: #09090B;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Feedback alert */
.el-villegas-auth-feedback {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 16px;
}

.el-villegas-auth-feedback.is-error {
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.el-villegas-auth-feedback.is-success {
  background-color: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

/* Form inputs */
.el-villegas-form-group {
  margin-bottom: 16px;
}

.el-villegas-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #27272A;
  margin-bottom: 6px;
}

.el-villegas-form-group input[type="text"],
.el-villegas-form-group input[type="email"],
.el-villegas-form-group input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  background: #FFFFFF;
  border: 1px solid #D4D4D8;
  border-radius: 8px;
  color: #09090B;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.el-villegas-form-group input:focus {
  border-color: #8C7A46;
  box-shadow: 0 0 0 3px rgba(140, 122, 70, 0.15);
}

.el-villegas-form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 18px;
}

.el-villegas-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #52525B;
  cursor: pointer;
}

.el-villegas-link-subtle {
  color: #71717A;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.15s ease;
}

.el-villegas-link-subtle:hover {
  color: #09090B;
  text-decoration: underline;
}

/* Submit button with bronze gradient */
.el-villegas-btn-submit {
  width: 100%;
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  background: linear-gradient(135deg, #8C7A46 0%, #5B4925 48%, #2B1C10 100%);
  color: #FFFFFF !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(43, 28, 16, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.el-villegas-btn-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(43, 28, 16, 0.35);
}

.el-villegas-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Divider */
.el-villegas-divider {
  position: relative;
  text-align: center;
  margin: 22px 0 16px 0;
}

.el-villegas-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #E4E4E7;
  z-index: 1;
}

.el-villegas-divider span {
  position: relative;
  z-index: 2;
  background: #FAF9F6;
  padding: 0 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #A1A1AA;
}

/* Google Sign In container */
.el-villegas-google-section {
  margin-top: 6px;
}

.el-villegas-google-btn-wrap {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.el-villegas-modal-footer {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #E4E4E7;
  text-align: center;
  font-size: 11px;
  color: #A1A1AA;
  letter-spacing: 0.02em;
}
