/* Même thème que login.css pour cohérence */
:root{
  --bg: #121212;
  --card: #1e1e1e;
  --card-border: #2a2a2a;
  --text: #e0e0e0;
  --muted: #9aa0a6;
  --accent: #66afe9;
  --danger: #dc3545;
  --success: #28a745;
  --input-bg: #232323;
  --input-border: #3a3a3a;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
}

.auth-main{
  min-height: calc(100vh - 160px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 40px 20px;
}

.auth-card{
  width: 100%;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.auth-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.auth-header h1{
  margin:0;
  font-size: 1.6rem;
}
.auth-link{
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
}
.auth-link:hover{ text-decoration: underline; }

.auth-alert{
  padding: 10px 12px;
  border-radius: 4px;
  margin: 10px 0 14px;
  border: 1px solid transparent;
  font-size: .95rem;
}
.auth-alert.error{
  border-color: rgba(220,53,69,.3);
  background: rgba(220,53,69,.1);
  color: #ff8a98;
}
.auth-alert.success{
  border-color: rgba(40,167,69,.3);
  background: rgba(40,167,69,.1);
  color: #7ee2a0;
}

.auth-form{
  display:grid;
  gap: 10px;
  margin-top: 6px;
}
label{
  font-size: .95rem;
  color: var(--muted);
}
.req{ color:#ffb347; margin-left: 2px; }
input{
  width:100%;
  padding: 12px 12px;
  border-radius: 4px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
}
input:focus{
  border-color: var(--accent);
}

/* Password fields */
.password-container{
  position: relative;
  display:flex;
  align-items:center;
}
.password-container input{
  padding-right: 44px;
}
.toggle-password{
  position:absolute;
  right: 6px;
  height: 36px;
  width: 36px;
  border:0;
  outline:0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.toggle-password:hover{ color: var(--text); }

.btn-primary{
  margin-top: 8px;
  padding: 12px 14px;
  background: #007bff;
  border: 1px solid #006de0;
  color:#fff;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary:hover{ background:#006de0; }

.auth-meta{
  margin-top: 10px;
  text-align: center;
}
.auth-muted{
  color: var(--muted);
  margin-right: 6px;
  font-size: .95rem;
}

/* Responsive */
@media (max-width: 480px){
  .auth-card{ padding: 18px; }
  .auth-header h1{ font-size: 1.35rem; }
}
