/* /assets/css/register.css */

:root {
  --bb-dark: #0e0e26;
  --bb-gold: #fcd34d;
  --bb-glass-bg: rgba(255, 255, 255, 0.05);
  --bb-radius: 16px;
  --bb-title-font: 'Cinzel Decorative', cursive;
  --bb-body-font: 'Crimson Text', serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--bb-body-font);
  background: url('/assets/fond.png') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  min-height: 100vh;
  display: flex;
}

.layout {
  display: flex;
  width: 100%;
}

nav {
  width: 260px;
  background: var(--bb-dark);
  flex-shrink: 0;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
  left: 0;
}

nav img.logo {
  width: 120px;
  margin-bottom: 2rem;
  border-radius: 50%;
  box-shadow: 0 0 16px #00f0ff;
}

nav a {
  font-family: var(--bb-title-font);
  color: var(--bb-gold);
  text-decoration: none;
  margin: 0.6rem 0;
  padding: 0.4rem 1rem;
  font-size: 1rem;
  text-align: center;
  transition: 0.3s;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 8px var(--bb-gold);
  border-radius: 8px;
}

/* Main content */
main {
  margin-left: 260px;
  padding: 3rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.banner {
  width: 100%;
  max-width: 960px;
  margin-bottom: 2rem;
}

/* Formulaire */
.register-section {
  background: var(--bb-glass-bg);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--bb-radius);
  width: 100%;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  animation: fadeIn 0.6s ease-in;
}

.title {
  font-family: var(--bb-title-font);
  text-align: center;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 4px #000;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, select {
  padding: 0.7rem;
  border: none;
  border-radius: 6px;
  background: #1c1c3a;
  color: #fff;
  font-size: 1rem;
  width: 100%;
}

input::placeholder {
  color: #ccc;
}

.btn {
  background: var(--bb-gold);
  color: #111;
  border: none;
  border-radius: 8px;
  padding: 0.8rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #fff;
  box-shadow: 0 0 12px var(--bb-gold);
}

footer {
  text-align: center;
  margin-top: 2rem;
  color: #ccc;
  font-size: 0.85rem;
}

.error {
  color: #f87171;
  font-size: 0.9rem;
  text-align: center;
}

.success {
  color: #34d399;
  font-size: 0.9rem;
  text-align: center;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    position: fixed;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-around;
    padding: 1rem;
  }

  .layout {
    flex-direction: column;
  }

  main {
    margin-left: 0;
    margin-top: 120px;
    padding: 1rem;
  }

  .register-section {
    width: 90%;
    padding: 1.5rem;
  }
}
.main-centered {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

.register-section {
  width: 100%;
  max-width: 480px;
  margin-top: 2rem;
}

input, select {
  margin-bottom: 1rem;
}
