@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&family=Pacifico&display=swap');

:root {
  --casanova-orange: #E89437;
  --casanova-red: #C94949;
  --casanova-green: #7AB548;
  --casanova-teal: #3CB4AC;
  --casanova-yellow: #F5B800;
  --gradient-start: #E89437;
  --gradient-end: #C94949;
  --text-dark: #2d2d2d;
  --text-medium: #555;
  --text-light: #777;
  --border-light: #e0e0e0;
  --bg-light: #f8f9fa;
}

body {
  background-image: url('/static/images/fondo_casanova.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  gap: 3rem;
}

@media (max-width: 767px) {
  body {
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    background-size: cover;
    background-position: center top;
  }
}

body::before {
  content: '';
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 100vh;
  max-height: 90vh;
  background-image: url('/static/images/bannerpareja.png');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  z-index: 0;
}

@media (max-width: 767px) {
  body::before {
    position: absolute;
    width: 100%;
    height: 45vh;
    background-position: center center;
    background-size: contain;
  }
}

.main-container {
  max-width: 450px;
  width: 100%;
  padding: 0;
  position: relative;
  z-index: 1;
  max-height: none;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .main-container {
    max-width: 100%;
    margin-top: 45vh;
    padding: 0;
  }
}

.card-wrapper {
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: visible;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  max-height: none;
}

.left-banner {
  display: none !important;
}

.left-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%); */
  z-index: 0;
}

.left-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 250px;
  height: 250px;
  background: rgba(122, 181, 72, 0.15);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-20px) translateX(10px); }
}

.left-banner h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 1;
  line-height: 1.2;
  color: #fff;
}

.left-banner p {
  position: relative;
  z-index: 1;
  line-height: 1.6;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.banner-highlight {
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border-left: 4px solid rgba(255, 255, 255, 0.9);
  margin-top: auto;
  margin-bottom: 0;
  backdrop-filter: blur(10px);
  color: #fff;
  position: relative;
  z-index: 1;
}

.right-form {
  background-color: #fff;
  padding: 1.25rem 1.75rem;
  position: relative;
  overflow-y: visible;
  max-height: none;
  border-radius: 1.25rem;
}

.form-header {
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f0f0f0;
}

.company-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.company-info {
  text-align: left;
}

.logo {
  max-height: 55px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  object-fit: contain;
  margin: 0;
  mix-blend-mode: multiply;
  background: transparent;
}

.company-name {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--casanova-red);
  margin-bottom: 0.1rem;
  text-transform: lowercase;
  letter-spacing: -0.55px;
  line-height: 1;
}

.company-tagline {
  font-family: 'Pacifico', cursive;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 0;
  font-weight: 400;
  line-height: 1;
}

.form-header h5 {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.form-header small {
  color: #666;
  font-size: 0.85rem;
}

.form-label {
  font-weight: 600;
  color: #444;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  display: block;
  width: 100%;
}

.form-control, .form-select {
  border: 2px solid var(--border-light);
  border-radius: 0.65rem;
  padding: 0.55rem 0.85rem;
  transition: all 0.3s ease;
  font-size: 0.88rem;
  width: 100%;
  box-sizing: border-box;
}

.form-control:focus, .form-select:focus {
  border-color: var(--casanova-orange);
  box-shadow: 0 0 0 0.2rem rgba(232, 148, 55, 0.15);
}

.btn {
  border-radius: 0.65rem;
  padding: 0.55rem 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  font-size: 0.88rem;
  box-sizing: border-box;
}

.btn-outline-primary {
  border: 2px solid var(--casanova-orange);
  color: var(--casanova-orange);
  background: white;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 148, 55, 0.4);
  border-color: var(--casanova-orange);
}

.btn-success {
  background: linear-gradient(135deg, #7AB548 0%, #5a9535 100%);
  color: white;
  font-size: 1rem;
  padding: 0.75rem;
  box-shadow: 0 4px 15px rgba(122, 181, 72, 0.3);
  width: 100%;
  font-weight: 700;
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 239, 125, 0.4);
  background: linear-gradient(135deg, #0e8074 0%, #2dd068 100%);
}

.btn-success:disabled {
  background: #cccccc;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--casanova-yellow) 0%, var(--casanova-orange) 100%);
  color: var(--text-dark);
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--casanova-orange) 0%, var(--casanova-yellow) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 148, 55, 0.4);
}

.btn-outline-secondary {
  border: 2px solid #6c757d;
  color: #6c757d;
}

.btn-outline-secondary:hover:not(:disabled) {
  background: #6c757d;
  color: white;
}

.form-check {
  padding: 0.5rem 0.65rem;
  background: var(--bg-light);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem !important;
  border-left: 3px solid var(--casanova-orange);
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
}

.form-check:hover {
  background: #fff9e6;
  border-left-color: var(--casanova-red);
}

.form-check-input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.05rem;
  border: 2px solid #ccc;
  cursor: pointer;
  flex-shrink: 0;
}

.form-check-input:checked {
  background-color: var(--casanova-orange);
  border-color: var(--casanova-orange);
}

.form-check-input:focus {
  border-color: var(--casanova-orange);
  box-shadow: 0 0 0 0.2rem rgba(232, 148, 55, 0.25);
}

.form-check-label {
  font-size: 0.78rem;
  color: var(--text-medium);
  line-height: 1.35;
  margin-left: 0.5rem;
  cursor: pointer;
  flex: 1;
}

.policy-link {
  color: var(--casanova-orange);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.policy-link:hover {
  color: var(--casanova-red);
  text-decoration: underline;
}

.alert {
  border: none;
  border-radius: 0.75rem;
  border-left: 4px solid;
}

.alert-danger {
  background: #ffe0e0;
  border-left-color: #dc3545;
  color: #721c24;
}

.otp-status {
  min-height: 1.0rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Asegurar que todos los grupos de formulario ocupen el ancho completo */
.mb-2, .mb-3 {
  width: 100%;
  display: block;
}

.input-group {
  width: 100%;
  display: flex;
}

.input-group .form-control {
  flex: 1;
}

.input-group .btn {
  flex-shrink: 0;
}

.modal-content {
  border-radius: 1.25rem;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: var(--text-dark);
  border-radius: 1.25rem 1.25rem 0 0;
  border-bottom: none;
  padding: 1.5rem 2rem;
}

.modal-title {
  font-weight: 700;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  border-top: 2px solid #f0f0f0;
  padding: 1.5rem 2rem;
}

@media (max-width: 767px) {
  .right-form {
    padding: 1.25rem 1.5rem;
    border-radius: 1.25rem 1.25rem 0 0;
  }
  
  .card-wrapper {
    border-radius: 1.25rem 1.25rem 0 0;
    margin: 0;
  }
  
  .logo {
    max-height: 50px;
  }
  
  .form-header h5 {
    font-size: 1.05rem;
  }
  
  .form-header small {
    font-size: 0.82rem;
  }
}

/* Animaciones de entrada */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-wrapper {
  animation: slideInUp 0.6s ease-out;
}


