/* Movie Theater Profile Page Styles */
body {
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  background-color: #121212;
  color: #ffffff;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95)),
    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='%23ffffff' 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");
}

.container {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: linear-gradient(145deg, #1e1e1e, #2d2d2d);
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #e50914, #ff9000);
}

h2 {
  text-align: center;
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 2rem;
  color: #ffffff;
  position: relative;
  padding-bottom: 0.8rem;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: rgba(229, 9, 20, 0.5);
  border-radius: 2px;
}

/* Profile Page Enhancements */
.profile-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 3rem auto;
}

/* Section styling */
.profile-section {
  background: rgba(30, 30, 30, 0.6);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.profile-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

.profile-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.7), transparent);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.profile-section:hover::after {
  transform: scaleX(1);
}

/* Form group styling */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  color: #cccccc;
  transition: color 0.3s ease;
}

.form-group:focus-within label {
  color: #ffffff;
}

/* Input field enhancements */
.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  background-color: rgba(20, 20, 20, 0.8);
  border: 1px solid #333333;
  border-radius: 6px;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-control:focus {
  background-color: rgba(40, 40, 40, 0.8);
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
  outline: none;
}

/* Button styling */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #e50914, #b20710);
  color: white;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f51f23, #c90812);
  box-shadow: 0 6px 16px rgba(229, 9, 20, 0.4);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.3);
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

/* Section headers */
.section-header {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  position: relative;
  padding-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.section-header::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.4rem;
  background: #e50914;
  margin-right: 0.8rem;
  border-radius: 2px;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
}

/* Notification styling */
.notification {
  padding: 1rem 1.2rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  animation: slideDown 0.4s ease-out;
}

.notification::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  margin-right: 12px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.notification-error {
  background-color: rgba(220, 53, 69, 0.15);
  border-left: 4px solid #dc3545;
  color: #ff8c94;
}

.notification-error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff8c94'%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1-7v2h2v-2h-2zm0-8v6h2V7h-2z'/%3E%3C/svg%3E");
}

.notification-success {
  background-color: rgba(40, 167, 69, 0.15);
  border-left: 4px solid #28a745;
  color: #8eff9e;
}

.notification-success::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238eff9e'%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-.997-6l7.07-7.071-1.414-1.414-5.656 5.657-2.829-2.829-1.414 1.414L11.003 16z'/%3E%3C/svg%3E");
}

/* Password strength indicator */
.password-strength-meter {
  height: 4px;
  width: 100%;
  background: #333;
  margin-top: 0.5rem;
  border-radius: 2px;
  overflow: hidden;
}

.password-strength-meter-bar {
  height: 100%;
  width: 0;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-weak {
  width: 33%;
  background-color: #dc3545;
}
.strength-medium {
  width: 66%;
  background-color: #ffc107;
}
.strength-strong {
  width: 100%;
  background-color: #28a745;
}

/* Password requirements */
.password-requirements {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #999;
}

.requirement {
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
}

.requirement::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-11.414L9.172 7.757 7.757 9.172 10.586 12l-2.829 2.828 1.415 1.415L12 13.414l2.828 2.829 1.415-1.415L13.414 12l2.829-2.828-1.415-1.415L12 10.586z'/%3E%3C/svg%3E");
}

.requirement.valid::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2328a745'%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-.997-6l7.07-7.071-1.414-1.414-5.656 5.657-2.829-2.829-1.414 1.414L11.003 16z'/%3E%3C/svg%3E");
}

/* Animations */
@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 1;
  }
  20% {
    transform: scale(25, 25);
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .profile-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-container > h2 {
    grid-column: 1 / -1;
  }

  .notification {
    grid-column: 1 / -1;
  }
}

/* Accessibility improvements */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Error and success messages (keeping original styles for compatibility) */
.error,
.success {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-weight: 500;
  animation: fadeIn 0.5s ease;
}

.error {
  background-color: rgba(220, 53, 69, 0.15);
  border-left: 4px solid #dc3545;
  color: #ff8c94;
}

.success {
  background-color: rgba(40, 167, 69, 0.15);
  border-left: 4px solid #28a745;
  color: #8eff9e;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
