/* Merged styles for Login and Signup pages */

/* Flash Messages */
.alert {
   position: relative;
   padding: 12px 15px;
   margin-bottom: 15px;
   border: 1px solid transparent;
   border-radius: 8px;
   font-family: 'Poppins', sans-serif;
   display: flex;
   align-items: center;
   gap: 8px;
}

.alert-danger {
   color: #721c24;
   background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
   border-color: #f5c6cb;
   box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
}

.alert-success {
   color: #155724;
   background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
   border-color: #c3e6cb;
   box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.alert-warning {
   color: #856404;
   background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
   border-color: #ffeeba;
   box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
}

.alert .close {
   padding: 0;
   background-color: transparent;
   border: 0;
   float: right;
   font-size: 20px;
   font-weight: 700;
   line-height: 1;
   color: inherit;
   text-shadow: 0 1px 0 #fff;
   opacity: 0.7;
   cursor: pointer;
   margin-left: auto;
   transition: all 0.3s ease;
}

.alert .close:hover {
   opacity: 1;
}

/* Main Options Container */
.login-options,
.signup-options {
   display: flex;
   flex-direction: column;
   gap: 15px;
   margin-bottom: 30px;
}

/* Option Buttons */
.login-option-btn,
.signup-option-btn {
   padding: 20px;
   border: 2px solid #e0e0e0;
   border-radius: 12px;
   background: white;
   cursor: pointer;
   transition: all 0.3s ease;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 15px;
   font-size: 16px;
   font-weight: 500;
   color: #333;
   text-decoration: none;
   position: relative;
   overflow: hidden;
   width: 100%;
}

.login-option-btn:hover,
.signup-option-btn:hover {
   transform: translateY(-2px);
   box-shadow: 0 8px 25px rgba(0,0,0,0.1);
   border-color: #ff6b35;
   color: #333;
   text-decoration: none;
}

.login-option-btn.google,
.signup-option-btn.google {
   background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.login-option-btn.google:hover,
.signup-option-btn.google:hover {
   border-color: #4285f4;
   background: #f8f9fa !important;
   box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
   transform: translateY(-1px);
}

.login-option-btn.email,
.signup-option-btn.email {
   background: linear-gradient(135deg, #ff6b35 0%, #38a169 100%);
   color: white;
}

.login-option-btn.email:hover,
.signup-option-btn.email:hover {
   color: white;
   transform: translateY(-2px) scale(1.02);
}

.login-option-btn::before,
.signup-option-btn::before {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
   transition: left 0.5s;
}

.login-option-btn:hover::before,
.signup-option-btn:hover::before {
   left: 100%;
}

.option-icon {
   font-size: 24px;
   width: 30px;
   height: 30px;
   display: flex;
   align-items: center;
   justify-content: center;
}

/* Form Containers */
.login-form-container,
.signup-form-container {
   display: none;
   animation: slideDown 0.3s ease-out;
}

.login-form-container.show,
.signup-form-container.show {
   display: block;
}

@keyframes slideDown {
   from {
      opacity: 0;
      transform: translateY(-20px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

/* Back to Options Button */
.back-to-options {
   background: none;
   border: none;
   color: #ff6b35;
   font-size: 14px;
   cursor: pointer;
   margin-bottom: 20px;
   display: flex;
   align-items: center;
   gap: 5px;
   transition: color 0.3s ease;
}

.back-to-options:hover {
   color: #38a169;
}

/* Form Title */
.form-title {
   text-align: center;
   color: #333;
   margin-bottom: 25px;
   font-size: 24px;
   font-weight: 600;
}

/* Password Container & Toggle */
.password-container {
   position: relative;
}

.password-toggle {
   position: absolute;
   right: 12px;
   top: 50%;
   transform: translateY(-50%);
   background: none;
   border: none;
   cursor: pointer;
   color: #666;
   font-size: 18px;
   padding: 5px;
   border-radius: 50%;
   transition: all 0.3s ease;
   display: flex;
   align-items: center;
   justify-content: center;
   width: 30px;
   height: 30px;
}

.password-toggle:hover {
   background: #f0f0f0;
   color: #ff6b35;
}

/* Welcome Message */
.welcome-message {
   text-align: center;
   margin-bottom: 30px;
   color: #666;
   font-size: 16px;
}

/* Divider */
.divider {
   text-align: center;
   margin: 30px 0;
   position: relative;
   color: #999;
   font-size: 14px;
}

.divider::before {
   content: '';
   position: absolute;
   top: 50%;
   left: 0;
   right: 0;
   height: 1px;
   background: #e0e0e0;
}

.divider span {
   background: white;
   padding: 0 15px;
   position: relative;
   z-index: 1;
}

/* Submit Button Hover Effect */
button[type="submit"]:hover {
   background: #e55a2b !important;
   transform: translateY(-1px);
}

/* Submit Button (for signup) */
.submit-button {
   margin-top: 30px;
}

.submit-button button {
   width: 100%;
   padding: 15px;
   background: linear-gradient(135deg, #ff6b35 0%, #38a169 100%);
   color: white;
   border: none;
   border-radius: 8px;
   font-size: 16px;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
   position: relative;
   overflow: hidden;
}

.submit-button button:hover {
   transform: translateY(-2px);
   box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.submit-button button:active {
   transform: translateY(0);
}

.submit-button button::before {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
   transition: left 0.5s;
}

.submit-button button:hover::before {
   left: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
   .login-option-btn,
   .signup-option-btn {
      padding: 15px;
      font-size: 14px;
   }
   
   .option-icon {
      font-size: 20px;
      width: 25px;
      height: 25px;
   }
   
   .alert {
      padding: 10px 12px;
      font-size: 14px;
   }
}

/* ===== Phone Verification Styles ===== */

.verification-form {
  margin-top: 20px;
}

.code-container {
  display: none;
  margin-top: 20px;
}

.timer {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

.resend-button {
  display: none;
  margin-top: 10px;
}

/* Button Styles */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, 
              border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
}

.btn-primary {
  color: #fff;
  background-color: #0078d7;
  border-color: #0078d7;
}

.btn-primary:hover {
  background-color: #006cc1;
  border-color: #005fb3;
}

.btn-primary:active {
  background-color: #005299;
  border-color: #00448a;
}

.btn-secondary {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
}

.btn-secondary:active {
  background-color: #4e555b;
  border-color: #4e555b;
}

.btn-success {
  color: #fff;
  background-color: #28a745;
  border-color: #28a745;
}

.btn-success:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

.btn-success:active {
  background-color: #1c7430;
  border-color: #1c7430;
}

/* Form control styles */
.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* Resend button styled differently */
.btn-link {
  font-weight: 400;
  color: #0078d7;
  background-color: transparent;
  border: none;
  padding: 0;
  text-decoration: underline;
}

.btn-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

#cambiar-telefono {
  margin-top: 20px;
  background-color: #6c757d;
  color: #fff;
}

#cambiar-telefono:hover {
  background-color: #5a6268;
}

.phone-input-group {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 500px;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f8ff;
  margin-bottom: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.country-select {
  flex: 0.3;
  max-width: 140px;
  padding: 12px;
  font-size: 14px;
  border: none;
  border-right: 1px solid #ddd;
  text-align: center;
  background: #f0f8ff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.phone-number {
  flex: 1;
  padding: 12px;
  font-size: 14px;
  border: none;
  background: #f0f8ff;
  transition: background-color 0.2s ease;
}

.phone-input-group input:focus,
.phone-input-group select:focus {
  outline: none;
}

.phone-input-group:focus-within {
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Phone verification button hover effects */
#enviar-codigo:hover,
#verificar-codigo:hover {
  background: #e55b25 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#cambiar-telefono:hover {
  background: #5a6268 !important;
  transform: translateY(-1px);
}

/* Onboarding Page Styles */
.onboarding-section {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.onboarding-section:hover {
  background: #e9ecef;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-content {
  flex: 1;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.section-description {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.edit-icon-btn {
  background: none;
  border: none;
  color: #ff6b35;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
}

.edit-icon-btn:hover {
  color: #e55b25;
  transform: scale(1.1);
}

.skip-text {
  text-align: center;
  color: #666;
  font-size: 13px;
  margin: 20px 0 10px;
}

.skip-text a {
  color: #ff6b35;
  text-decoration: none;
  font-weight: 600;
}

.skip-text a:hover {
  text-decoration: underline;
}
