/* Auth Pages - Modern Split-Screen Design */

/* Container für die gesamte Auth-Seite */
.authPage {
  display: flex;
  min-height: calc(100vh - 150px);
  background-color: #f8f9fa;
}

/* Linke Seite - Visueller Bereich */
.authVisual {
  flex: 1;
  background: linear-gradient(135deg, #1a1f35 0%, #2a2f43 50%, #1a1f35 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.authVisual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/static/core/images/hero-home.jpg') center/cover no-repeat;
  opacity: 0.15;
}

.authVisual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #E30A1D, transparent);
}

.visualContent {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 500px;
}

.visualLogo {
  width: 180px;
  height: auto;
  margin-bottom: 40px;
  filter: brightness(0) invert(1);
}

.visualTitle {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.visualSubtitle {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 40px;
}

.visualFeatures {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  align-items: center;
}

.featureItem {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1rem;
}

.featureIcon {
  width: 40px;
  height: 40px;
  background: rgba(227, 10, 29, 0.2);
  border: 1px solid rgba(227, 10, 29, 0.5);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E30A1D;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Rechte Seite - Formular-Bereich */
.authFormSection {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
  background: #ffffff;
  position: relative;
}

.authFormSection::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #E30A1D 0%, #c0081a 100%);
}

.authContainer { 
  width: 100%;
  max-width: 420px;
}

.heading { 
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #2a2f43;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.heading::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #E30A1D, #ff4757);
  border-radius: 2px;
}

.headingNoLine {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #2a2f43;
  margin-bottom: 10px;
}

.subtitle {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1rem;
  color: #666;
  margin-top: 20px;
  margin-bottom: 35px;
  line-height: 1.5;
}

/* Formular-Elemente */
.formGroup { 
  margin-bottom: 24px;
  width: 100%;
}

.formRow {
  display: flex;
  gap: 16px;
}

.formRow .formGroup {
  flex: 1;
}

.label { 
  display: block;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2a2f43;
  margin-bottom: 8px;
}

.input { 
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e8ecef;
  border-radius: 10px;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1rem;
  color: #2a2f43;
  background: #fafbfc;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.input::placeholder {
  color: #a0a8b0;
}

.input:hover {
  border-color: #d0d5db;
  background: #ffffff;
}

.input:focus {
  outline: none;
  border-color: #E30A1D;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(227, 10, 29, 0.08);
}

.input:disabled {
  background-color: #f0f2f4;
  cursor: not-allowed;
  opacity: 0.7;
}

.input-error {
  border-color: #E30A1D !important;
  background-color: #fff5f5 !important;
}

/* Button */
.button { 
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #E30A1D 0%, #c0081a 100%);
  color: #ffffff;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.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 ease;
}

.button:hover:not(:disabled)::before {
  left: 100%;
}

.button:hover:not(:disabled) { 
  background: linear-gradient(135deg, #c0081a 0%, #a00615 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(227, 10, 29, 0.35);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:disabled {
  background: linear-gradient(135deg, #b0b5bb 0%, #8a9099 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Error Message */
.error { 
  padding: 14px 18px;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  border: 1px solid #feb2b2;
  border-left: 4px solid #E30A1D;
  border-radius: 8px;
  color: #c53030;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.error::before {
  content: '⚠';
  font-size: 1.1rem;
}

/* Success Message */
.success {
  padding: 32px 24px;
  background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
  border: 1px solid #9ae6b4;
  border-left: 4px solid #38a169;
  border-radius: 12px;
  color: #22543d;
  font-family: 'Source Sans Pro', sans-serif;
  margin-bottom: 28px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(56, 161, 105, 0.1);
}

.successIconWrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.successIcon {
  width: 64px;
  height: 64px;
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.successTitle {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 16px;
  color: #22543d;
  line-height: 1.4;
}

.successText {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
  color: #22543d;
  opacity: 0.9;
}

.successHint {
  font-size: 0.9rem;
  color: #2d5016;
  font-style: italic;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(56, 161, 105, 0.2);
}

/* Auth Links */
.authLinks {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #e8ecef;
  text-align: center;
}

.authLinks p {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 12px;
}

.authLinks p:last-child {
  margin-bottom: 0;
}

.link {
  color: #E30A1D;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #E30A1D;
  transition: width 0.3s ease;
}

.link:hover::after {
  width: 100%;
}

.link:hover {
  color: #c0081a;
}

/* Loading Spinner */
.loadingContainer {
  text-align: center;
  padding: 40px;
}

.loadingText {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 20px;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #f0f0f0;
  border-top: 4px solid #E30A1D;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .authPage {
    flex-direction: column;
  }
  
  .authVisual {
    padding: 40px 30px;
    min-height: 300px;
  }
  
  .visualTitle {
    font-size: 2rem;
  }
  
  .visualSubtitle {
    font-size: 1rem;
  }
  
  .visualFeatures {
    display: none;
  }
  
  .authFormSection {
    padding: 40px 30px;
  }
  
  .authFormSection::before {
    width: 100%;
    height: 4px;
    top: 0;
    left: 0;
  }
}

@media (max-width: 768px) {
  .authVisual {
    padding: 30px 20px;
    min-height: 200px;
  }
  
  .visualLogo {
    width: 140px;
    margin-bottom: 25px;
  }
  
  .visualTitle {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }
  
  .visualSubtitle {
    font-size: 0.95rem;
    margin-bottom: 0;
  }
  
  .authFormSection {
    padding: 30px 20px;
  }
  
  .authContainer {
    max-width: 100%;
  }
  
  .heading {
    font-size: 1.8rem;
  }
  
  .formRow {
    flex-direction: column;
    gap: 0;
  }
  
  .input {
    padding: 12px 14px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .button {
    padding: 14px 20px;
    font-size: 1rem;
  }
}


