/**
 * Authentication Pages Styles
 * Login page - Matching reference design
 */

.auth-container {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #333;
}

.auth-logo svg {
  width: 48px;
  height: 48px;
}

.auth-header {
  margin-bottom: 3rem;
}

.auth-header h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #333;
}

.auth-header p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

.auth-form {
  margin-bottom: 2rem;
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: white;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: #a51d2a;
  box-shadow: 0 0 0 3px rgba(165, 29, 42, 0.1);
}

.form-input::placeholder {
  color: #808080;
}

.form-error {
  color: #FF1744;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
}

.password-input-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #808080;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.password-toggle:hover {
  color: #a51d2a;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #666;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.forgot-password {
  color: #a51d2a;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

.btn-primary {
  background: #000;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

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

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 2rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background: #E0E0E0;
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.auth-divider span {
  background: white;
  padding: 0 1rem;
  color: #808080;
  font-size: 0.875rem;
}

.social-login {
  margin-bottom: 2rem;
}

.btn-secondary {
  background: transparent;
  color: #666;
  border: 2px solid #E0E0E0;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary:hover:not(:disabled) {
  border-color: #a51d2a;
  color: #a51d2a;
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-footer {
  text-align: center;
  color: #666;
}

.auth-footer p {
  margin-bottom: 0.5rem;
}

.text-secondary {
  color: #666;
  text-decoration: none;
}

.text-secondary:hover {
  color: #a51d2a;
}

/* Side Panel */
.auth-side {
  background: #a51d2a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

.auth-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 50px,
      rgba(255,255,255,0.03) 50px,
      rgba(255,255,255,0.03) 51px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 50px,
      rgba(255,255,255,0.03) 50px,
      rgba(255,255,255,0.03) 51px
    );
}

.side-content {
  position: relative;
  z-index: 1;
  max-width: 400px;
  color: white;
}

.side-content h2 {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  color: white;
  text-transform: uppercase;
  font-weight: 900;
}

.side-content p {
  font-size: 1.125rem;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.side-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.side-feature {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
}

.side-feature svg {
  flex-shrink: 0;
  color: white;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #E0E0E0;
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .auth-container {
    grid-template-columns: 1fr;
  }
  
  .auth-side {
    display: none;
  }
  
  .auth-card {
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  .auth-card {
    padding: 1.5rem;
  }
  
  .auth-header h1 {
    font-size: 1.75rem;
  }
}