* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #e0e0e0;
}

/* When header exists, adjust body layout for index.html */
body:has(.header) {
  background: #0f0f1e;
  justify-content: flex-start;
  align-items: stretch;
  flex-direction: column;
}

/* Header Styling */
.header {
  background: #16213e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #0f3460;
}

.header-content {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-icon {
  font-size: 28px;
  color: #00d4ff;
}

.app-name {
  font-size: 20px;
  font-weight: 600;
  color: #e0e0e0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  font-size: 32px;
  color: #00d4ff;
}

.user-displayname {
  font-size: 14px;
  color: #e0e0e0;
  font-weight: 500;
}

.btn-logout-icon {
  background: none;
  border: none;
  font-size: 20px;
  color: #00d4ff;
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.btn-logout-icon:hover {
  background: #0f3460;
  color: #00ffff;
}

/* Main Content Styling */
.main-content {
  flex: 1;
  padding: 40px 20px;
}

.content-container {
  max-width: 800px;
  margin: 0 auto;
}

.container {
  width: 100%;
  max-width: 600px;
  padding: 20px;
  margin: 0 auto;
}

.login-box {
  background: #16213e;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  padding: 60px 40px;
  text-align: center;
  border: 1px solid #0f3460;
}

.login-box h1 {
  color: #e0e0e0;
  margin-bottom: 10px;
  font-size: 28px;
}

.login-box p {
  color: #a0a0a0;
  margin-bottom: 30px;
  font-size: 16px;
}

#profile {
  background: #16213e;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  padding: 30px;
  border: 1px solid #0f3460;
}

#profile h2 {
  color: #e0e0e0;
  margin-bottom: 20px;
  font-size: 22px;
  border-bottom: 2px solid #00d4ff;
  padding-bottom: 10px;
}

.info-card {
  background: #0f1628;
  border-left: 4px solid #00d4ff;
  padding: 20px;
  border-radius: 4px;
}

.info-card p {
  color: #e0e0e0;
  margin: 12px 0;
  font-size: 16px;
}

.info-card strong {
  color: #00d4ff;
}

#welcomeMessage {
  color: #e0e0e0;
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
}

.btn-login,
.btn-logout {
  background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
  color: #0f1628;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-login:hover,
.btn-logout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

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

.btn-logout {
  margin-bottom: 30px;
  margin-left: auto;
  display: block;
}

#copyNotification {
  font-size: 14px;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .login-box {
    padding: 30px 20px;
  }

  .login-box h1 {
    font-size: 24px;
  }

  #welcomeMessage {
    font-size: 24px;
  }

  #profile h2 {
    font-size: 18px;
  }

  .info-card p {
    font-size: 14px;
  }
}
