:root {
  --rd-up-primary-color: #a12027;
  --rd-up-secondary-color: #c02e35;
  --rd-up-accent-color: #e03a42;
  --rd-up-light-bg: #fdf7f7;
  --rd-up-text-dark: #1f2937;
  --rd-up-text-light: #6b7280;
}

.rd-up-auth-wrapper {
  max-width: 28rem;
  width: 100%;
  background-color: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin: 2rem auto;
}
.rd-up-header {
  background: linear-gradient(
    135deg,
    var(--rd-up-primary-color),
    var(--rd-up-secondary-color)
  );
  color: #fff;
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  border-bottom-left-radius: 50% 20%;
  border-bottom-right-radius: 50% 20%;
}
.rd-up-logo {
  width: 5rem;
  height: 5rem;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -6rem auto 1rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  border: 4px solid #fff;
}
.rd-up-logo .dashicons {
  font-size: 2.5rem;
  color: var(--rd-up-primary-color);
  width: auto;
  height: auto;
}
.rd-up-header h2 {
  font-size: 1.75rem;
  margin: 0 0 0.25rem 0;
  font-weight: 700;
  color: #fff;
}
.rd-up-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
  color: #fff;
}
.rd-up-body {
  padding: 2rem 2.5rem;
  position: relative;
}
.rd-up-bg-icon {
  position: absolute;
  color: var(--rd-up-text-dark);
  opacity: 0.04;
  z-index: 0;
  pointer-events: none;
}
.rd-up-bg-icon-1 {
  top: 3.5rem;
  left: 1.5rem;
  font-size: 5rem;
  transform: rotate(-15deg);
}
.rd-up-bg-icon-2 {
  bottom: 2rem;
  right: 1.5rem;
  font-size: 6rem;
  transform: rotate(10deg);
}
.rd-up-form-group {
  margin-bottom: 1.25rem;
  position: relative;
}
.rd-up-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  background-color: #f9fafb;
  transition: all 0.2s ease;
  text-align: right;
}
.rd-up-input::placeholder {
  color: #9ca3af;
}
.rd-up-input:focus {
  outline: 0;
  border-color: var(--rd-up-secondary-color);
  box-shadow: 0 0 0 4px rgba(192, 46, 53, 0.1);
  background-color: #fff;
}
.rd-up-input[name="code"] {
  text-align: center;
  letter-spacing: 0.2em;
}
.rd-up-name-fields {
  display: flex;
  gap: 1rem;
}
.rd-up-button {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 0.75rem;
  background: linear-gradient(
    135deg,
    var(--rd-up-secondary-color),
    var(--rd-up-accent-color)
  );
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
@media (hover: hover) {
  .rd-up-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(192, 46, 53, 0.3);
  }
}
.rd-up-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.rd-up-button .spinner {
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid hsla(0, 0%, 100%, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.rd-up-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
  display: none;
  font-size: 0.9rem;
}
.rd-up-message.error {
  background-color: #fee2e2;
  color: #991b1b;
}
.rd-up-message.success {
  background-color: #dcfce7;
  color: #166534;
}
.rd-up-timer {
  text-align: center;
  margin-top: 1rem;
  color: var(--rd-up-text-light);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.rd-up-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.rd-up-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}
.rd-up-modal-content {
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s;
  width: 100%;
  max-width: 28rem;
}
.rd-up-modal-overlay.is-visible .rd-up-modal-content {
  transform: scale(1);
}
.rd-up-modal-close {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: 0 0;
  border: none;
  font-size: 2rem;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
  z-index: 10;
}
.rd-up-modal-content .rd-up-auth-wrapper {
  margin: 0;
}
