:root {
  --primary-green: #106e62;
  --secondary-green: #1c9178;
  --light-green: #68c3b4;
  --red: #c82e2e;
  --light-red: #f2dede;
  --dark-red: #a94442;
  --warning-yellow: #caa351;
  --light-yellow: #f5d5a4;
  --dark-text: #333333;
  --medium-gray: #666666;
  --light-gray: #f4f4f4;
  --white: #ffffff;
  --border-color: #e0e0e0;
}

#lockScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff; /* Fond blanc */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: #333; /* Texte sombre */
  font-family: 'Open Sans', sans-serif;
  text-align: center;
  padding: 20px;
}

#lockMessage {
  font-size: 18px;
  margin-bottom: 30px;
}

#sliderContainer {
  width: 300px;
  height: 50px;
  background: #eee;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#slider {
  position: absolute;
  width: 50px;
  height: 50px;
  background: #008B56; /* Bouton bleu */
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  left: 0;
  transition: left 0.3s;
  user-select: none;
  color: #fff;
  font-weight: bold;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

body {
  background-color: var(--light-gray);
  color: var(--dark-text);
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Alert Banner */
.alert-banner {
  background-color: var(--red);
  color: var(--white);
  padding: 15px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.alert-icon {
  font-size: 24px;
  margin-top: 2px;
}

.alert-content {
  flex: 1;
}

.alert-content strong {
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
}

.alert-close {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 18px;
  align-self: flex-start;
}

/* Header Styles */
header {
  background-color: var(--white);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.header-top {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  padding: 5px 0;
}

.header-top a {
  color: var(--medium-gray);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.logo-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.bank-logo img {
  height: 50px;
}

.cta-button {
  background-color: var(--primary-green);
  color: var(--white);
  border: none;
  border-radius: 25px;
  padding: 12px 25px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cta-button:hover {
  background-color: var(--secondary-green);
}

/* Main Content Styles */
main {
  padding: 30px 0;
}

.login-section {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  max-width: 550px;
  margin: 0 auto;
}

.login-title {
  font-size: 28px;
  margin-bottom: 30px;
  color: var(--dark-text);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark-text);
}

.login-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 16px;
}

.login-input:focus {
  outline: 2px solid var(--primary-green);
  border-color: transparent;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
}

.remember-me input {
  width: 18px;
  height: 18px;
}

.remember-me label {
  margin-bottom: 0;
  font-weight: normal;
}

.submit-btn {
  background-color: var(--primary-green);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 14px 20px;
  width: 100%;
  font-weight: 700;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: var(--secondary-green);
}

.help-links {
  margin-top: 25px;
  text-align: center;
  display: flex;
  justify-content: space-around;
}

.help-link {
  color: var(--primary-green);
  text-decoration: none;
  font-size: 14px;
}

.help-link:hover {
  text-decoration: underline;
}

.security-info {
  margin-top: 30px;
  background-color: var(--light-gray);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  gap: 15px;
}

.security-icon {
  font-size: 24px;
  color: var(--primary-green);
}

.security-text h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--dark-text);
}

.security-text p {
  margin-bottom: 10px;
  font-size: 14px;
}

.security-text a {
  color: var(--primary-green);
  text-decoration: none;
}

.security-text a:hover {
  text-decoration: underline;
}

/* Footer Styles */
footer {
  background-color: var(--white);
  padding: 30px 0;
  margin-top: 50px;
  border-top: 1px solid var(--border-color);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--medium-gray);
  text-decoration: none;
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.social-links a {
  color: var(--medium-gray);
  text-decoration: none;
  font-size: 20px;
}

/* Demo notice */
#demo-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--red);
  color: var(--white);
  text-align: center;
  padding: 10px;
  z-index: 1000;
}

/* Error message */
.error-message {
  color: var(--dark-red);
  background-color: var(--light-red);
  border-left: 4px solid var(--red);
  padding: 10px;
  margin-bottom: 15px;
  font-size: 14px;
  border-radius: 4px;
}

/* Demo modal */
.demo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.demo-modal-content {
  background-color: var(--white);
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.demo-modal-content h3 {
  color: var(--primary-green);
  margin-bottom: 15px;
  font-size: 20px;
}

.demo-modal-content p {
  margin-bottom: 20px;
  line-height: 1.5;
}

.demo-modal-close {
  background-color: var(--primary-green);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

/* Responsive styles */
@media (max-width: 768px) {
  .header-top {
    justify-content: center;
  }

  .logo-container {
    flex-direction: column;
    gap: 15px;
  }

  .login-section {
    padding: 20px;
  }

  .login-title {
    font-size: 24px;
  }

  .help-links {
    flex-direction: column;
    gap: 15px;
  }

  .security-info {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .login-section {
    padding: 15px;
  }

  .alert-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .alert-icon {
    margin-bottom: 10px;
  }
}
