/* 
 * Dunamis Growth - Enhanced Login Page Styles
 * Modern two-column login design with role-based themes
 */

/* Login Container */
.login-container {
  display: flex;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Left Side - Branding */
.login-branding {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.login-branding::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.branding-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 500px;
}

.logo-section {
  margin-bottom: 3rem;
}

.login-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.brand-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.brand-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin: 0 0 1rem 0;
  letter-spacing: 1px;
  opacity: 0.9;
}

.brand-tagline {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.features-preview {
  display: grid;
  gap: 1rem;
}

.feature-highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.feature-highlight i {
  font-size: 1.5rem;
  opacity: 0.9;
}

.feature-highlight span {
  font-size: 1rem;
  opacity: 0.9;
}

/* Right Side - Login Form */
.login-form-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: white;
}

.form-container {
  width: 100%;
  max-width: 450px;
}

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

.form-header h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Role Selector */
.role-selector {
  margin-bottom: 2rem;
}

.role-selector h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.role-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.role-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.8rem;
  font-weight: 500;
  color: white;
}

.role-btn i {
  font-size: 1.2rem;
}

.role-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Role-specific button colors */
.role-btn.customer-theme {
  background: var(--customer-primary);
}

.role-btn.waiter-theme {
  background: var(--waiter-primary);
}

.role-btn.manager-theme {
  background: var(--manager-primary);
}

.role-btn.owner-theme {
  background: var(--owner-primary);
}

.role-btn.admin-theme {
  background: var(--admin-primary);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  color: var(--text-secondary);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.divider span {
  padding: 0 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Login Form */
.login-form {
  margin-bottom: 2rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group i {
  position: absolute;
  left: 1rem;
  color: var(--text-secondary);
  z-index: 2;
}

.form-control {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(103, 58, 183, 0.1);
}

.toggle-password {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: color 0.3s ease;
}

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

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  margin-right: 0.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.forgot-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Login Button */
.login-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(103, 58, 183, 0.3);
}

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

/* Form Footer */
.form-footer {
  text-align: center;
  color: var(--text-secondary);
}

.form-footer p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.signup-link,
.home-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.signup-link:hover,
.home-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Error and Success Messages */
.error-message {
  color: var(--error);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: none;
}

.success-message {
  color: var(--success);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .login-container {
    flex-direction: column;
  }
  
  .login-branding {
    min-height: 40vh;
  }
  
  .login-form-section {
    min-height: 60vh;
  }
  
  .role-buttons {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .role-btn {
    padding: 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .login-branding {
    padding: 1.5rem;
    min-height: 35vh;
  }
  
  .login-form-section {
    padding: 1.5rem;
  }
  
  .brand-title {
    font-size: 2.5rem;
  }
  
  .brand-subtitle {
    font-size: 1.2rem;
  }
  
  .form-header h2 {
    font-size: 1.75rem;
  }
  
  .role-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-preview {
    display: none;
  }
}

@media (max-width: 480px) {
  .login-branding {
    padding: 1rem;
    min-height: 30vh;
  }
  
  .login-form-section {
    padding: 1rem;
  }
  
  .brand-title {
    font-size: 2rem;
  }
  
  .login-logo {
    width: 80px;
    height: 80px;
  }
  
  .role-buttons {
    grid-template-columns: 1fr;
  }
  
  .role-btn {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem;
  }
  
  .form-options {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}
