.cta-button {
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 300%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.3)
  );
  z-index: 1;
  transition: left 0.5s ease-in-out;
  mix-blend-mode: overlay; /* ✅ Makes it visible on colored backgrounds */
  pointer-events: none;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:active {
  transform: scale(0.97);
}

/* Default hidden state */
section {
  opacity: 0;
  transform: translateY(30px);
}

/* Add this new class */
.animate-visible {
  animation: fadeInUp 0.8s ease forwards;
}

/* Enhanced Login Container */
.login-container {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.98), 
        rgba(255, 255, 255, 0.92));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    box-shadow: 
        0 25px 100px rgba(16, 185, 129, 0.2),
        0 0 150px rgba(16, 185, 129, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(16, 185, 129, 0.1) 0%,
        transparent 70%
    );
    animation: spin-slow 30s linear infinite;
    z-index: -1;
}

.login-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.05),
        rgba(13, 148, 136, 0.03));
    z-index: -1;
}

/* Enhanced Energy Orb */
.energy-orb {
    width: 140px;
    height: 140px;
    background: radial-gradient(
        circle at 30% 30%,
        var(--primary-green),
        var(--dark-green),
        #0CA678
    );
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    animation: pulse-glow 3s ease-in-out infinite;
    box-shadow: 
        0 25px 60px rgba(16, 185, 129, 0.3),
        0 0 100px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform-style: preserve-3d;
}

.energy-orb::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: conic-gradient(
        from 0deg,
        transparent,
        var(--primary-green),
        var(--accent-teal),
        #34D399,
        var(--primary-green)
    );
    border-radius: 50%;
    animation: spin-slow 4s linear infinite;
    z-index: -1;
}

.energy-orb::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: radial-gradient(
        circle at 40% 40%,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    border-radius: 50%;
    filter: blur(10px);
    z-index: 1;
}

.energy-orb i {
    font-size: 48px;
    color: white;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 255, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

/* Enhanced Form Elements */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding-left: 10px;
}

.form-group label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, var(--primary-green), var(--accent-teal));
    border-radius: 2px;
}

/* Enhanced Input Fields */
.enhanced-input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.05),
        0 4px 20px rgba(16, 185, 129, 0.1);
}

.enhanced-input:focus {
    border-color: var(--primary-green);
    box-shadow: 
        0 0 0 4px rgba(16, 185, 129, 0.2),
        inset 0 2px 10px rgba(0, 0, 0, 0.05),
        0 8px 30px rgba(16, 185, 129, 0.15);
    outline: none;
    transform: translateY(-3px);
}

.enhanced-input::placeholder {
    color: rgba(107, 114, 128, 0.6);
}

/* Enhanced Password Toggle */
.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.password-toggle:hover {
    color: var(--primary-green);
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-50%) scale(1.1);
}

/* Enhanced Checkbox */
.enhanced-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.enhanced-checkbox input[type="checkbox"] {
    display: none;
}

.enhanced-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.enhanced-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-green);
    border-color: var(--primary-green);
    animation: pulse 0.5s ease;
}

.enhanced-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Enhanced Links */
.enhanced-link {
    color: var(--primary-green);
    text-decoration: none;
    position: relative;
    font-weight: 600;
    transition: all 0.3s ease;
}

.enhanced-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-teal));
    transition: width 0.4s ease;
}

.enhanced-link:hover::after {
    width: 100%;
}

.enhanced-link:hover {
    color: var(--dark-green);
}

/* Enhanced Submit Button */
.enhanced-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-teal));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 8px 30px rgba(16, 185, 129, 0.3),
        0 0 60px rgba(16, 185, 129, 0.2);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.enhanced-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    transition: left 0.8s;
}

.enhanced-submit:hover::before {
    left: 100%;
}

.enhanced-submit:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(16, 185, 129, 0.4),
        0 0 80px rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, #0CA678, var(--accent-teal));
}

.enhanced-submit:active {
    transform: translateY(-2px) scale(0.98);
}

/* Enhanced Divider */
.enhanced-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
}

.enhanced-divider::before,
.enhanced-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(16, 185, 129, 0.3),
        transparent);
}

.enhanced-divider span {
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
}

/* Enhanced Social Login Buttons */
.social-login-btn {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.social-login-btn:hover {
    border-color: var(--primary-green);
    background: rgba(16, 185, 129, 0.05);
    transform: translateY(-3px);
    box-shadow: 
        0 10px 30px rgba(16, 185, 129, 0.15),
        0 0 50px rgba(16, 185, 129, 0.1);
}

/* Enhanced Error/Success Messages */
.message-box {
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: slideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.message-box.error {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.1), 
        rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.1);
}

.message-box.success {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.1), 
        rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.message-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-green), var(--accent-teal));
}

.message-box.error::before {
    background: linear-gradient(180deg, #EF4444, #DC2626);
}

/* Enhanced Footer */
.login-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(16, 185, 129, 0.1);
    text-align: center;
}

.login-footer p {
    color: var(--text-light);
    font-size: 14px;
    position: relative;
}

.login-footer p::before {
    content: '⚡';
    margin-right: 8px;
    animation: pulse 2s ease-in-out infinite;
}

/* Enhanced Background Effects */
.login-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        #f0fdf4 0%, 
        #ccfbf1 25%, 
        #a5f3fc 50%, 
        #f0f9ff 100%);
    z-index: -2;
}

.login-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(16, 185, 129, 0.15), transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(13, 148, 136, 0.1), transparent 40%);
    animation: float-3d 20s ease-in-out infinite;
}

.login-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8), transparent 60%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2310b981' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}