/* --- ROOT VARIABLES --- */
:root {
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --color-primary: #10b981;
  --color-primary-dark: #059669;
  --color-primary-light: #d1fae5;
  --color-accent: #34d399;
  --color-bg: #f0fdf4;
  --color-card: #fff;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-success-dark: #065f46;
  --radius-lg: 2rem;
  --radius-md: 1.2rem;
  --shadow-lg: 0 20px 50px 0 rgba(16, 185, 129, 0.15);
  --shadow-md: 0 8px 24px 0 rgba(16, 185, 129, 0.1);
  --shadow-sm: 0 4px 12px 0 rgba(16, 185, 129, 0.08);
  --shadow-card: 0 4px 24px 0 rgba(16, 185, 129, 0.10);
  --glass-bg: rgba(255, 255, 255, 0.88);
}

/* --- BASE STYLES --- */
* {
  font-family: var(--font-primary);
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

body.app-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #dbeafe 100%);
}

h2, h3 {
  line-height: 1.3;
}

p {
  font-size: 0.95rem;
}

.lead {
  font-size: 1rem !important;
}

/* --- BACKGROUND ELEMENTS --- */
.bg-gradient-main {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #dbeafe 100%);
}

.shape-blob-1,
.shape-blob-2 {
  position: fixed;
  border-radius: 50%;
  opacity: 0.1;
  z-index: 0;
}

.shape-blob-1 {
  width: 400px;
  height: 400px;
  background: var(--color-primary);
  top: -100px;
  right: -100px;
}

.shape-blob-2 {
  width: 300px;
  height: 300px;
  background: var(--color-accent);
  bottom: -50px;
  left: -100px;
}

.bg-blur-1, .bg-blur-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.bg-blur-1 {
  width: 40vw; 
  height: 40vw;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, #fff0 80%);
  top: -10%; 
  left: -10%;
}

.bg-blur-2 {
  width: 30vw; 
  height: 30vw;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.15) 0%, #fff0 80%);
  bottom: -10%; 
  right: -10%;
}

/* --- UTILITIES --- */
.z-2 { position: relative; z-index: 2 !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-lg) !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.gap-4 { gap: 0.75rem !important; }

/* --- TEXT STYLING --- */
.text-gradient {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-success-dark {
  color: var(--color-success-dark) !important;
}

/* --- CARDS & CONTAINERS --- */
main {
  position: relative;
  z-index: 1;
}

.glass-effect {
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(16, 185, 129, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.3s ease;
}

.glass-effect:hover {
  box-shadow: 0 8px 40px 0 rgba(16, 185, 129, 0.15);
}

.form-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.1);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-card:hover {
  box-shadow: 0 25px 50px 0 rgba(16, 185, 129, 0.15);
}

.form-card-header {
  background: rgba(16, 185, 129, 0.05);
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.form-card-header h2 {
  letter-spacing: -0.5px;
  color: var(--color-text);
}

.form-card-body {
  padding: 2rem 2.5rem !important;
}

.card {
  border-radius: 1rem;
  margin: 0 0.5rem;
}

.card-header {
  padding: 1.25rem 1rem 0.5rem !important;
  background: transparent;
  border: none;
}

.card-body {
  padding: 1.25rem !important;
}

.card-footer {
  background: transparent;
  border: none;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* --- PROFILE IMAGE STYLING --- */
.profile-card {
  animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-container {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.image-container img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.image-container:hover img {
  transform: scale(1.05);
}

/* --- FORMS & INPUTS --- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  text-transform: none;
  letter-spacing: 0.3px;
  line-height: 1.4 !important;
}

.form-label.login-label {
  margin-top: 0.3rem;
  margin-left: 0;
  color: var(--color-muted);
  font-weight: 550;
  font-size: 0.95rem;
}

label {
  color: var(--color-muted);
  font-weight: 500;
}

.input-modern, .form-control-lg, .form-control {
  border: 2px solid #e5e7eb !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  color: var(--color-text) !important;
  padding: 0.75rem 1.1rem !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  min-height: 48px !important;
}

.input-modern::placeholder, .form-control::placeholder {
  color: #9ca3af !important;
  font-weight: 400;
}

.input-modern:focus, .form-control:focus, .form-control-lg:focus {
  border-color: var(--color-primary) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15) !important;
  outline: none !important;
}

.input-modern:hover:not(:focus), .form-control:hover:not(:focus) {
  border-color: #d1d5db !important;
}

/* Input Groups */
.input-group {
  position: relative;
}

.input-group-lg .input-group-text {
  background: #f3f4f6 !important;
  border: 2px solid #e5e7eb !important;
  border-right: none !important;
  border-radius: 1rem 0 0 1rem !important;
  color: var(--color-primary) !important;
  padding: 0.65rem 1rem !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-left: 1.5px solid rgba(16, 185, 129, 0.15);
}

.input-group-lg .form-control {
  border-radius: 0 1rem 1rem 0 !important;
  border-left: none !important;
}

.input-group:focus-within .input-group-text, 
.input-group-lg:focus-within .input-group-text {
  border-color: var(--color-primary) !important;
  background: #f0fdf4 !important;
  color: var(--color-primary-dark) !important;
}

.input-group-lg:hover .input-group-text:not(:focus-within) {
  border-color: #d1d5db !important;
}

.invalid-feedback {
  color: #dc2626;
  font-size: 0.85rem;
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

/* --- BUTTONS --- */
.btn-submit-premium {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff !important;
  border: none !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 1.2rem 2rem !important;
  font-size: 1.15rem !important;
  min-height: 56px !important;
  border-radius: 1.2rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px 0 rgba(16, 185, 129, 0.2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-submit-premium:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 12px 32px 0 rgba(16, 185, 129, 0.3);
  transform: translateY(-3px);
}

.btn-submit-premium:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px 0 rgba(16, 185, 129, 0.2);
}

.btn-submit-premium:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine 3s infinite;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(90deg, var(--color-primary) 60%, var(--color-accent) 100%);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px 0 rgba(16, 185, 129, 0.25);
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #059669 60%, #10b981 100%);
  box-shadow: 0 8px 32px 0 rgba(5, 150, 105, 0.3);
  transform: translateY(-2px) scale(1.03);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-lg {
  padding: 0.75rem 2rem !important;
  font-size: 1.05rem !important;
}

/* --- ALERTS --- */
.alert {
  border: none !important;
  border-left: 4px solid transparent;
  border-radius: 1rem !important;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  animation: slideInAlert 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.65rem 0.9rem !important;
}

.alert-success {
  background-color: #d1fae5 !important;
  color: #065f46 !important;
  border-left-color: var(--color-primary) !important;
}

.alert-danger {
  background-color: #fee2e2 !important;
  color: #7f1d1d !important;
  border-left-color: #ef4444 !important;
}

/* --- BADGES & LISTS --- */
.badge {
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.benefit-item {
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateX(8px);
}

.benefit-icon {
  width: 50px;
  height: 50px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary);
}

/* --- FOOTER (PROFESSIONAL) --- */
.app-footer {
  border-top: 1px solid rgba(16, 185, 129, 0.1) !important;
  box-shadow: 0 -4px 24px 0 rgba(0, 0, 0, 0.02);
  width: 100%;
  margin-top: auto;
  z-index: 2;
  background-color: #ffffff;
}

.footer-link {
  color: #6b7280;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
  position: relative;
  transition: color 0.3s ease;
  padding-bottom: 2px;
}

.footer-link:hover, 
.footer-link:focus {
  color: var(--color-primary-dark);
}

.footer-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.footer-link:hover::after {
  width: 100%;
}

/* --- ANIMATIONS --- */
@keyframes shine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

@keyframes slideInAlert {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.floating-element { animation: float 3s ease-in-out infinite; }
.animate-slide-right { animation: slideRight 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.animate-slide-left { animation: slideLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.animate-fade-in { animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
  .form-card-body {
    padding: 1.5rem 2rem !important;
  }
}

@media (max-width: 991px) {
  .app-body {
    align-items: center;
    padding-top: 0;
  }
  
  .glass-effect {
    border-radius: var(--radius-md);
  }

  .app-footer {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
}

@media (max-width: 768px) {
  .input-modern,
  .form-control-lg,
  .form-control,
  .login-input {
    font-size: 1rem;
    padding: 0.85rem 1rem !important;
    min-height: 46px !important;
  }

  .input-group-lg .input-group-text {
    font-size: 1rem;
    padding: 0.65rem 0.9rem !important;
  }

  .form-card-body, .card-body {
    padding: 1.5rem !important;
  }

  .form-label {
    font-size: 0.9rem;
  }

  .btn-submit-premium {
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    min-height: 52px !important;
  }

  .btn-lg {
    padding: 0.65rem 1.5rem !important;
    font-size: 0.95rem !important;
  }

  .card-header {
    padding: 1.5rem 1.5rem 0 !important;
  }

  #form-webinar > .card {
    max-width: 100%;
    margin: 0 !important;
  }

  .footer-link {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .app-body {
    padding: 0.3rem 0;
  }

  #form-webinar {
    padding: 0.3rem 0.5rem !important;
    width: 100vw;
  }

  .form-card-body {
    padding: 1.25rem !important;
  }

  .btn-submit-premium {
    padding: 0.9rem 1.2rem !important;
    font-size: 0.95rem !important;
    min-height: 48px !important;
    width: 100%;
  }

  .image-container {
    max-width: 100%;
  }

  .glass-effect {
    border-radius: 1.2rem;
    padding: 0.6rem 0.5rem !important;
  }

  .card-header {
    padding: 0.7rem 0.6rem 0.3rem !important;
    margin-bottom: 0 !important;
  }

  .card-header h3 {
    font-size: 1.1rem !important;
    margin-bottom: 0.2rem !important;
  }

  .card-header p {
    font-size: 0.7rem !important;
  }

  .card-header .rounded-circle {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 0.3rem !important;
  }

  .card-header .bi {
    font-size: 1.2rem !important;
  }

  .card-body {
    padding: 0.5rem 0.5rem !important;
  }

  .form-group {
    margin-bottom: 0.5rem !important;
  }

  .form-group:first-of-type {
    margin-top: 0 !important;
  }

  .input-group-text {
    font-size: 0.95rem;
    padding: 0.65rem 0.4rem;
    border-radius: 0.7rem 0 0 0.7rem !important;
  }

  .input-group.input-group-lg {
    margin-bottom: 0 !important;
  }

  .login-input {
    border-radius: 0 0.7rem 0.7rem 0 !important;
  }

  .form-label.login-label {
    font-size: 0.75rem;
    margin-top: 0.1rem !important;
  }

  .invalid-feedback {
    font-size: 0.75rem;
    margin-top: 0.2rem;
  }

  .card-footer {
    padding: 0.4rem 0.5rem !important;
    font-size: 0.55rem !important;
  }

  .card-footer small {
    font-size: 0.55rem !important;
  }

  input[type="text"], textarea {
    font-size: 0.9rem;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.2rem;
  }

  .position-absolute.rotate-12 {
    display: none !important;
  }

  .container-fluid {
    padding: 0;
  }
}