/* ===============================
   RESET + VARIABLES (SITE)
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #00bcd4;
  --secondary-color: #00eaff;
  --bg-dark: #0f172a;
  --bg-darker: #0a0f1e;
  --text-light: #ffffff;
  --text-gray: #d1faff;
}

/* ===============================
   BODY
================================ */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===============================
   HEADER (IDENTIQUE SITE)
================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 2px solid rgba(0, 188, 212, 0.3);
  box-shadow: 0 4px 20px rgba(0, 188, 212, 0.1);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .logo-section {
  margin: 0;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s;
  position: relative;
}

.nav-link:hover {
  color: var(--secondary-color);
  background: rgba(0, 188, 212, 0.1);
}

.nav-link.active {
  color: var(--secondary-color);
  background: rgba(0, 188, 212, 0.15);
  box-shadow: 0 0 15px rgba(0, 188, 212, 0.3);
}

/* ===============================
   CONTAINER PAGE LOGIN
================================ */
.container {
  min-height: calc(100vh - 70px);
  padding-top: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===============================
   CARTE AUTH
================================ */
.auth-card {
  width: 100%;
  max-width: 460px;
  background: rgba(0, 188, 212, 0.05);
  border: 2px solid rgba(0, 188, 212, 0.25);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 188, 212, 0.25);
}

/* ===============================
   LOGO + TITRE
================================ */
.logo-section {
  text-align: center;
  margin-bottom: 30px;
}

/* Logo dans le header */
.header .logo {
  height: 45px;
  filter: drop-shadow(0 0 10px var(--primary-color));
  transition: transform 0.3s;
}

.header .logo:hover {
  transform: scale(1.05);
}

/* Logo dans la card avec fond gradient */
.auth-card .logo-section .logo {
  width: 100px;
  height: 100px;
  padding: 0;
  margin: 0 auto 20px;
  background: transparent;
  border-radius: 0;
  display: block;
  box-shadow: none;
  position: relative;
  filter: drop-shadow(0 0 30px rgba(0, 234, 255, 0.8)) drop-shadow(0 0 50px rgba(0, 188, 212, 0.6));
  transition: transform 0.3s;
}

.auth-card .logo-section .logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 40px rgba(0, 234, 255, 1)) drop-shadow(0 0 60px rgba(0, 188, 212, 0.8));
}

.brand-name {
  font-size: 1.8em;
  margin-top: 15px;
  color: var(--secondary-color);
  text-shadow: 0 0 15px var(--primary-color);
}

.auth-subtitle {
  font-size: 0.95em;
  color: var(--text-gray);
}

/* ===============================
   TABS
================================ */
.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  background: rgba(0, 188, 212, 0.08);
  border: 1px solid rgba(0, 188, 212, 0.25);
  border-radius: 8px;
  color: var(--text-gray);
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn:hover {
  background: rgba(0, 188, 212, 0.15);
}

.tab-btn.active {
  background: rgba(0, 188, 212, 0.2);
  color: var(--secondary-color);
  box-shadow: 0 0 15px rgba(0, 188, 212, 0.4);
}

/* ===============================
   FORMULAIRES
================================ */
.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

/* INPUTS */
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 188, 212, 0.3);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 1em;
  transition: all 0.3s;
}

.form-input::placeholder {
  color: var(--text-gray);
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 15px rgba(0, 188, 212, 0.4);
}

/* PASSWORD */
.password-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
}

/* ===============================
   CHECKBOX
================================ */
.checkbox-group {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.checkbox-label {
  font-size: 0.85em;
  color: var(--text-gray);
}

.checkbox-label a {
  color: var(--secondary-color);
  text-decoration: none;
}

/* ===============================
   BOUTONS
================================ */
.submit-btn {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  font-size: 1.05em;
  font-weight: 600;
  color: var(--text-light);
  background: rgba(0, 188, 212, 0.25);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover {
  background: rgba(0, 188, 212, 0.45);
  box-shadow: 0 0 20px var(--primary-color);
  transform: translateY(-2px);
}

/* ===============================
   LIENS
================================ */
.forgot-password {
  margin-top: 20px;
  text-align: center;
}

.forgot-password a {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 0.9em;
}

.forgot-password a:hover {
  text-shadow: 0 0 10px var(--primary-color);
}

/* ===============================
   LOADING
================================ */
.loading {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid var(--text-light);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    gap: 10px;
  }

  .auth-card {
    padding: 30px;
  }

  .brand-name {
    font-size: 1.5em;
  }
}

/* ===============================
   FOOTER
================================ */
.footer {
  background: #060a14;
  padding: 60px 20px 20px;
  border-top: 2px solid rgba(0, 188, 212, 0.3);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 1.3em;
}

.footer-section p {
  color: var(--text-gray);
  line-height: 1.8;
}

.footer-section a {
  display: block;
  color: var(--text-gray);
  text-decoration: none;
  margin-bottom: 10px;
  transition: all 0.3s;
}

.footer-section a:hover {
  color: var(--secondary-color);
  padding-left: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 188, 212, 0.2);
  color: var(--text-gray);
}