/* Modern Professional Login Page - Don Juan Barbershop */

:root {
  /* Match the main website color scheme */
  --primary: #1a1a1a;
  --primary-dark: #0f0f0f;
  --primary-light: #2c2c2c;
  --accent: #d4af37;  /* Gold accent color */
  --accent-light: #e5c76b;
  --accent-dark: #b08d1a;
  --text-dark: #2d2d2d;
  --text-light: #ffffff;
  --text-muted: #9b9b9b;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-800: #343a40;
  --error: #dc3545;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.15);
  --shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.25);
  --transition: all 0.3s ease;
  
  /* Fonts matching main site */
  --font-primary: 'Montserrat', sans-serif;
  --font-accent: 'Great Vibes', cursive;
  --font-don: 'Bebas Neue', sans-serif;
}

/* Login Section - Updated to match site's dark theme */
.login-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background-color: var(--primary-dark);
  position: relative;
  overflow: hidden;
}

/* Stylish background pattern */
.login-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(30deg, var(--primary) 12%, transparent 12.5%, transparent 87%, var(--primary) 87.5%, var(--primary)),
    linear-gradient(150deg, var(--primary) 12%, transparent 12.5%, transparent 87%, var(--primary) 87.5%, var(--primary)),
    linear-gradient(30deg, var(--primary) 12%, transparent 12.5%, transparent 87%, var(--primary) 87.5%, var(--primary)),
    linear-gradient(150deg, var(--primary) 12%, transparent 12.5%, transparent 87%, var(--primary) 87.5%, var(--primary)),
    linear-gradient(60deg, var(--primary-light) 25%, transparent 25.5%, transparent 75%, var(--primary-light) 75%, var(--primary-light)),
    linear-gradient(60deg, var(--primary-light) 25%, transparent 25.5%, transparent 75%, var(--primary-light) 75%, var(--primary-light));
  background-size: 40px 70px;
  background-position: 0 0, 0 0, 20px 35px, 20px 35px, 0 0, 20px 35px;
  opacity: 0.05;
}

/* Gold accent lines */
.login-section::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, var(--accent), transparent 70%);
  top: 15%;
  left: -100%;
  animation: goldLine 8s ease-in-out infinite;
}

@keyframes goldLine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: -100%; }
}

/* Main Container */
.login-container {
  width: 100%;
  max-width: 1100px;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  background: var(--primary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(212, 175, 55, 0.15);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Left Side - Visual Content */
.login-visual-container {
  display: none;
}

/* Right Side - Form Container */
.login-form-container {
  flex: 1;
  padding: 2.5rem 1.5rem;
  position: relative;
  z-index: 1;
  background: var(--text-light);
}

.login-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-form-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-family: var(--font-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.login-form-header h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background: var(--accent);
}

.login-form-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Social Login - Restyled buttons */
.social-login {
  margin-bottom: 2rem;
}

.social-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 30px; /* Matched to main site's button style */
  border: 2px solid transparent;
  background-color: var(--text-light);
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.social-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.social-button.google {
  color: #4285F4;
  border-color: #4285F4;
  background-color: rgba(66, 133, 244, 0.05);
}

.social-button.google:hover {
  background-color: rgba(66, 133, 244, 0.1);
}

.social-button.facebook {
  color: #3b5998;
  border-color: #3b5998;
  background-color: rgba(59, 89, 152, 0.05);
}

.social-button.facebook:hover {
  background-color: rgba(59, 89, 152, 0.1);
}

.social-button i {
  font-size: 1.1rem;
}

.social-divider {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 1.5rem 0;
}

.social-divider::before,
.social-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gray-300), transparent);
}

.social-divider span {
  padding: 0 1rem;
}

/* Form Styling */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.password-label-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.forgot-password {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.forgot-password:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

.input-container {
  position: relative;
  width: 100%;
}

.input-container i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 0.9rem;
}

.input-container input {
  width: 100%;
  padding: 1rem 1rem 1rem 2.75rem;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  background-color: var(--text-light);
  color: var(--text-dark);
  font-size: 1rem;
  transition: var(--transition);
}

.input-container input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.input-container input::placeholder {
  color: var(--gray-400);
  font-size: 0.95rem;
}

/* Enhanced Password Toggle Button */
.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  padding: 0;
}

.password-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(212, 175, 55, 0.05);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
  z-index: -1;
}

.password-toggle:hover::before {
  transform: scale(1);
}

.password-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.password-toggle:active {
  transform: translateY(-50%) scale(0.95);
}

.password-toggle i {
  font-size: 1rem;
  color: var(--gray-500);
  transition: all 0.3s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover i {
  color: var(--accent);
}

/* Eye icon animation */
.password-toggle i.fa-eye, 
.password-toggle i.fa-eye-slash {
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle i.fa-eye::after,
.password-toggle i.fa-eye-slash::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.password-toggle:focus i.fa-eye::after,
.password-toggle:focus i.fa-eye-slash::after {
  animation: pulse 1s ease;
}

@keyframes pulse {
  0% { width: 0; height: 0; opacity: 1; }
  100% { width: 30px; height: 30px; opacity: 0; }
}

/* Custom Checkbox - Improved style */
.remember-me {
  margin: 0;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 0.85rem;
  user-select: none;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  left: 0;
  top: 0;
  height: 20px;
  width: 20px;
  background-color: var(--text-light);
  border: 1.5px solid var(--gray-300);
  border-radius: 4px;
  transition: var(--transition);
}

.custom-checkbox:hover input ~ .checkmark {
  border-color: var(--accent);
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--accent);
  border-color: var(--accent);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label {
  color: var(--text-dark);
  margin-left: 0.25rem;
}

/* Login Button - Redesigned to match main site */
.form-actions {
  margin-top: 1.5rem;
}

.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--accent);
  color: var(--primary-dark);
  border: none;
  border-radius: 30px; /* Matched to main site's button style */
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Button hover effect */
.btn-login:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  transition: width 0.4s ease;
  z-index: -1;
}

.btn-login:hover:before {
  width: 100%;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--primary-dark);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login i {
  font-size: 0.9rem;
}

/* Error Styling */
.input-error-message {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 0.5rem;
  padding-left: 0.5rem;
  border-left: 2px solid var(--error);
}

.form-group.has-error input {
  border-color: var(--error);
}

.form-group.has-error input:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.login-alert i {
  color: var(--error);
  font-size: 1.1rem;
  margin-top: 0.15rem;
}

.login-alert .alert-title {
  color: var(--error);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
}

.login-alert .alert-message {
  color: var(--text-dark);
  font-size: 0.85rem;
  margin: 0;
}

.login-alert .alert-details {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}

/* Signup Prompt */
.signup-prompt {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.signup-prompt p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.signup-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.signup-link:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

/* Responsive Styles - Updated for dark theme */
@media (min-width: 768px) {
  .login-container {
    flex-direction: row;
  }

  .login-visual-container {
    display: block;
    flex: 1.2;
    position: relative;
    overflow: hidden;
  }
  
  .login-visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.85), rgba(15, 15, 15, 0.95));
    z-index: 1;
  }
  
  .login-visual-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: grayscale(30%);
  }
  
  /* Gold grain overlay */
  .login-visual-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0z' fill='none'/%3E%3Cpath d='M10 10l.5.5.5-.5-.5-.5-.5.5z' fill='%23d4af37' fill-opacity='0.15'/%3E%3C/svg%3E");
    z-index: 2;
    pointer-events: none;
    opacity: 0.5;
  }
  
  .login-visual-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    color: var(--text-light);
  }
  
  .login-logo {
    width: 80px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  }
  
  .login-tagline {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }
  
  .login-tagline span {
    color: var(--accent);
    font-weight: 800;
    display: inline-block;
    position: relative;
    font-family: var(--font-don);
    letter-spacing: 1px;
  }
  
  .login-tagline span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
  }
  
  .login-visual-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .feature {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .feature i {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    color: var(--accent);
    font-size: 1rem;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.3);
  }
  
  .feature span {
    font-size: 1rem;
    font-weight: 500;
  }

  .login-form-container {
    flex: 0.8;
    padding: 3rem;
    border-radius: 0 16px 16px 0;
    position: relative;
  }
  
  /* Gold accent line on form side */
  .login-form-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  }
  
  .social-login-buttons {
    flex-direction: row;
    gap: 1rem;
  }

  .social-button {
    flex: 1;
  }
}

@media (min-width: 992px) {
  .login-container {
    max-height: calc(100vh - 80px - 4rem);
    min-height: 680px;
  }

  .login-visual-container {
    flex: 1.5;
  }

  .login-form-container {
    flex: 1;
    padding: 4rem;
    overflow-y: auto;
  }
  
  .login-visual-content {
    padding: 4rem;
  }
  
  .login-tagline {
    font-size: 3rem;
  }
  
  /* Enhanced button effect on larger screens */
  .btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
}

/* Visual background image */
.login-visual-image {
    background-image: url('../../images/chair.png');
}