:root {
  --fs16: 16px;
  --cloud800: #1f2937;
  --montserrat: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bold: 700;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  display: flex;
  min-height: 100vh;
}

/* Campaign Side */
.campaign-side {
  display: none;
  width: 60%;
  position: relative;
  overflow: hidden;
  background-image: url('https://minhaconta2.cielo.com.br/acessos//assets/images/flui-illustrations/login/captions/campaign-reclame-aqui-background-1.jpg');
  background-size: cover;
  background-position: center;
}

.campaign-image-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.campaign-image {
  max-width: 100%;
  object-fit: contain;
}

/* Form Side */
.form-side {
  width: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.form-wrapper {
  width: 100%;
  max-width: 28rem;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  animation: fadeIn 0.4s ease-out;
}

.spinner {
  width: 4rem;
  height: 4rem;
  border: 4px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.loading-text {
  color: #6b7280;
}

/* Form State */
.form-state {
  animation: fadeIn 0.4s ease-out;
}

.header {
  margin-bottom: 25px;
}

.title {
  font-size: var(--fs16);
  line-height: 22px;
  color: var(--cloud800);
  font-family: var(--montserrat);
  font-weight: var(--bold);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Floating Label Input */
.floating-label-input {
  position: relative;
}

.floating-label-input input {
  padding: 22px 16px 8px 16px;
  font-size: 16px;
  line-height: 1.4;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  transition: all 0.2s ease-out;
  outline: none;
  width: 85%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.floating-label-input input:hover {
  border: 2.5px solid #2563eb;
}

.floating-label-input input:focus {
  border: 2.5px solid #2563eb;
}

.floating-label-input input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.floating-label-input label {
  position: absolute;
  left: 16px;
  top: 18px;
  color: #9ca3af;
  font-size: 16px;
  pointer-events: none;
  transition: transform 0.15s ease-out, font-size 0.15s ease-out, color 0.15s ease-out;
  transform-origin: left top;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.floating-label-input input:focus ~ label,
.floating-label-input input:not(:placeholder-shown) ~ label {
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 600;
  top: 0;
  padding: 0 5px;
  color: #2563eb;
  background-color: #ffffff;
}

/* Forgot Password */
.forgot-password {
  display: flex;
  justify-content: flex-end;
  width: 85%;
}

.forgot-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: #1d4ed8;
}

/* Buttons */
.btn-primary {
  width: 85%;
  background: #2563eb;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: scale(1.02);
}

.btn-secondary {
  width: 85%;
  background: white;
  border: 2px solid #2563eb;
  color: #2563eb;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #eff6ff;
}

/* Validation State */
.validation-state {
  animation: fadeIn 0.4s ease-out;
}

.validation-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 0.5rem;
}

.validation-subtitle {
  font-size: 1rem;
  color: #94a3b8;
  margin-bottom: 2rem;
}

.validation-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Radio Options */
.radio-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.radio-option:hover {
  background: transparent;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s;
}

.radio-option input[type="radio"]:checked ~ .radio-custom {
  border-color: #2563eb;
  border-width: 6px;
}

.radio-label {
  color: #1e293b;
  font-size: 1rem;
  font-weight: 500;
}

/* Update Info */
.update-info {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1rem;
  background: #f1f5f9;
  border-radius: 8px;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.5;
}

.info-icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: #64748b;
}

.update-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.update-link:hover {
  text-decoration: underline;
}

/* Confirm Button */
.btn-confirm {
  width: 100%;
  background: #e2e8f0;
  color: #94a3b8;
  padding: 0.875rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: not-allowed;
  transition: all 0.2s;
  margin-top: 1rem;
  pointer-events: none;
}

.btn-confirm.active {
  background: #2563eb;
  color: white;
  cursor: pointer;
  pointer-events: all;
}

.btn-confirm.active:hover {
  background: #1d4ed8;
}

/* Back Button */
.btn-back {
  width: 100%;
  background: transparent;
  color: #2563eb;
  padding: 0.875rem 1.5rem;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-back:hover {
  color: #1d4ed8;
}

.back-icon {
  transition: transform 0.2s;
}

.btn-back:hover .back-icon {
  transform: translateX(-0.25rem);
}

/* Braspag Section */
.braspag-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.braspag-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.braspag-link {
  display: inline-flex;
  align-items: center;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.braspag-link:hover {
  color: #1d4ed8;
}

.chevron-icon {
  margin-left: 0.25rem;
  transition: transform 0.2s;
}

.braspag-link:hover .chevron-icon {
  transform: translateX(0.25rem);
}

/* Utility Classes */
.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out;
}

/* Responsive */
@media (min-width: 1024px) {
  .campaign-side {
    display: flex;
  }

  .form-side {
    width: 40%;
  }
}


/* Verification State */
.verification-state {
  text-align: center;
  animation: fadeIn 0.4s ease-out;
  padding: 2rem 0;
}

.lock-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.verification-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.verification-subtitle {
  font-size: 0.9375rem;
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.verification-subtitle strong {
  color: #1e293b;
  font-weight: 600;
}

.verification-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Code Inputs */
.code-inputs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.code-input {
  width: 48px;
  height: 56px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  transition: all 0.2s;
  outline: none;
}

.code-input:focus {
  border-color: #2563eb;
  background: #eff6ff;
}

.code-input:not(:placeholder-shown) {
  border-color: #2563eb;
}

/* Resend Text */
.resend-text {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: -0.5rem;
}

.resend-text span {
  font-weight: 600;
}

/* Verify Button */
.btn-verify {
  width: 100%;
  background: #cbd5e1;
  color: #94a3b8;
  padding: 0.875rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: not-allowed;
  transition: all 0.2s;
  margin-top: 0.5rem;
}

.btn-verify:not(:disabled) {
  background: #2563eb;
  color: white;
  cursor: pointer;
}

.btn-verify:not(:disabled):hover {
  background: #1d4ed8;
}

/* Change Method Button */
.btn-change-method {
  width: 100%;
  background: transparent;
  color: #2563eb;
  padding: 0.875rem 1.5rem;
  border: none;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-change-method:hover {
  color: #1d4ed8;
}

.chevron-left {
  transition: transform 0.2s;
}

.btn-change-method:hover .chevron-left {
  transform: translateX(-0.25rem);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
