/* Correction des problèmes de mise en page */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
}

#main-content {
  position: fixed !important;
  top: var(--header-height) !important;
  bottom: var(--footer-height) !important;
  left: 0 !important;
  right: 0 !important;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
  background-color: #1f2937;
  z-index: 50;
}

/* Assure que le contenu est correctement affiché quand il y a peu de contenu */
#main-content > * {
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

/* Assure que le contenu du map est correctement affiché */
#map-content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

#map-content.with-map {
  padding: 0;
}

#info-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 300px;
  display: block;
  text-align: center;
  padding: 20px;
  color: #fff;
  font-size: 18px;
  line-height: 1.5;
  background-color: rgba(31, 41, 55, 0.5);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#info-message i {
  display: inline-block;
  margin: 0 5px;
  color: #00ccff;
  vertical-align: middle;
}

#main-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-height);
  background-color: #252d36;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

#footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#footer-links .btn-nav,
#main-footer .btn-nav,
#main-footer .btn-back {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background-color: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  color: white !important;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  margin: 0 5px;
}

#footer-links .btn-nav i,
#main-footer .btn-nav i,
#main-footer .btn-back i {
  margin-right: 8px;
}

#footer-links .btn-nav:hover,
#main-footer .btn-nav:hover,
#main-footer .btn-back:hover {
  background-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  color: white !important;
  text-decoration: none;
}

#auth-container {
  max-width: 450px;
  margin: 0 auto;
  background-color: rgba(31, 41, 55, 0.7);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  padding: 30px;
  overflow: hidden;
  margin-top: 0;
}

#auth-title {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 24px;
  font-weight: 500;
  margin-top: 10px;
  text-align: center;
  height: 40px;
  z-index: 110;
}

.auth-tabs {
  display: flex;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 15px;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.auth-tab-btn:hover {
  color: white;
}

.auth-tab-btn.active {
  color: white;
  font-weight: 500;
}

.auth-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #00ccff;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: white;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group label i {
  margin-right: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: white;
}

.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
}

.remember-me {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
}

.remember-me input {
  margin-right: 8px;
}

.forgot-link {
  color: #00ccff;
  text-decoration: none;
}

.btn-auth {
  width: 100%;
  padding: 12px;
  background-color: #00ccff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

.btn-auth i {
  margin-left: 8px;
}

.btn-auth:hover {
  background-color: #00bde0;
}

.account-type-options {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
}

.account-type-option {
  flex: 1;
  margin: 0 10px;
  padding: 20px 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.account-type-option:hover, .account-type-option.active {
  background-color: rgba(0, 204, 255, 0.1);
  border-color: #00ccff;
}

.account-type-icon {
  font-size: 24px;
  margin-bottom: 10px;
  color: white;
}

.account-type-text {
  color: white;
  font-weight: 500;
  margin-bottom: 5px;
}

.account-type-info {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.password-strength {
  margin-top: 10px;
}

.strength-bar {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 5px;
  position: relative;
}

.strength-bar.weak::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 25%;
  background-color: #ff4d4d;
  border-radius: 2px;
}

.strength-bar.medium::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 50%;
  background-color: #ffcc00;
  border-radius: 2px;
}

.strength-bar.good::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 75%;
  background-color: #2ecc71;
  border-radius: 2px;
}

.strength-bar.strong::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: #00ccff;
  border-radius: 2px;
}

.strength-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.terms-label {
  display: block;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.terms-label input {
  margin-right: 8px;
}

.terms-link, .privacy-link {
  color: #00ccff;
  text-decoration: none;
}

.location-marker-instruction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
}

.location-marker-instruction i {
  font-size: 24px;
  display: inline-block;
}

.auth-wrapper {
  padding-top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
} 