:root {
  --bg: #ffffff;
  --text: #000000;
  --nav-bg: rgba(255, 255, 255, 0.8);
  --nav-link-color: #000000;
  --nav-link-hover-color: #00bfff;
  --box-bg: rgba(255, 255, 255, 0.1);
  --button-bg: #e0e0e0;
  --button-color: #000000;
  --footer-bg: #f9f9f9;
  --footer-text: #222;
  --footer-box-bg: #ffffff;
  --footer-box-border: #ddd;
  --footer-link: #333;
}

body.dark {
  --bg: #0f0f0f;
  --text: #ffffff;
  --nav-bg: rgba(0, 0, 0, 0.8);
  --nav-link-color: #ffffff;
  --nav-link-hover-color: #00bfff;
  --box-bg: rgba(255, 255, 255, 0.08);
  --button-bg: #1e1e1e;
  --button-color: #ffffff;
  --footer-bg: #1a1a1a;
  --footer-text: #f0f0f0;
  --footer-box-bg: rgba(0, 0, 0, 0.3);
  --footer-box-border: rgba(255, 255, 255, 0.1);
  --footer-link: #ccc;
}

body {
  background: url(../images/bg.png) no-repeat center center fixed;
  background-size: cover;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: -1;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--nav-bg) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand span {
  font-weight: bold;
  font-size: 20px;
  color: #00bfff;
}

.navbar-nav .nav-link {
  color: var(--nav-link-color) !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--nav-link-hover-color) !important;
}

.nav-link.active {
  color: #00bfff !important;
  font-weight: bold;
  text-decoration: underline;
}

.glass-button {
  background: var(--button-bg);
  color: var(--button-color);
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  transition: background 0.3s ease;
  display: inline-block;
  margin: 0.5rem;
}

.glass-button:hover {
  background-color: #00bfff;
  color: #fff;
  text-decoration: none;
}

.glass-box {
  background: var(--box-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  color: var(--text);
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.dark-toggle {
  background: none;
  border: none;
  font-size: 1.4rem;
  margin-right: 15px;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.dark-toggle:hover {
  transform: scale(1.2);
}

#myBtn {
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 50px;
  display: none;
  transition: background-color 0.3s ease;
}

#myBtn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* User Info Box (oben rechts) */
.user-info-box {
  position: fixed;
  top: 79px;
  right: 20px;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  color: var(--text);
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 220px;
}

.user-info-box a {
  color: #00bfff;
  text-decoration: none;
}

.user-info-box a:hover {
  text-decoration: underline;
}

/* Login Page Wrapper */
.login-wrapper {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 10;
}

.login-container {
  max-width: 480px;
  width: 100%;
}

/* Login Card */
.login-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 50px 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 15px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.login-header h2 {
  font-size: 32px;
  margin: 10px 0;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.login-header p {
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.error-message {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ffffff;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 25px;
  text-align: center;
  font-size: 14px;
  backdrop-filter: blur(5px);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.sso-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(102,126,234,0.4);
  border: none;
  cursor: pointer;
}

.sso-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102,126,234,0.5);
  color: white;
  text-decoration: none;
}

.sso-icon {
  font-size: 24px;
}

.sso-text {
  flex: 1;
  text-align: center;
}

.login-footer {
  margin-top: 30px;
  text-align: center;
}

.register-link {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.register-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Register Page */
.register-container {
  max-width: 700px;
  margin: 60px auto;
  padding: 20px;
}

.register-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 50px 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
}

.register-header {
  text-align: center;
  margin-bottom: 40px;
}

.register-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 15px;
  animation: float 3s ease-in-out infinite;
}

.register-header h2 {
  font-size: 32px;
  margin: 10px 0;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.register-header p {
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.steps-container {
  margin: 30px 0;
}

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  border-left: 4px solid #667eea;
  transition: transform 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(5px);
}

.step:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  background: rgba(255, 255, 255, 0.2);
}

.step-number {
  min-width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

.step-content h3 {
  margin: 0 0 8px 0;
  color: #ffffff;
  font-size: 18px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.step-content p {
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.step-link {
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  background: rgba(102,126,234,0.4);
  border-radius: 8px;
  transition: all 0.2s;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.step-link:hover {
  background: rgba(102,126,234,0.6);
  transform: translateX(3px);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.feature-list li {
  padding: 5px 0;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.btn-primary {
  display: block;
  padding: 16px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102,126,234,0.5);
  color: white;
}

.btn-secondary {
  display: block;
  padding: 14px;
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.6);
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-card {
    padding: 30px 20px;
  }
  
  .login-header h2 {
    font-size: 26px;
  }
  
  .register-card {
    padding: 30px 20px;
  }
  
  .step {
    flex-direction: column;
    align-items: flex-start;
  }
}
