/* login.css - Page de connexion / inscription RentaLab */

* {
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: #eff6ff;
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
}

.card {
  position: relative;
  background: white;
  max-width: 420px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.08);
  padding: 40px;
}

.login-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 300;
  color: #9ca3af;
  text-decoration: none;
  border-radius: 14px;
  transition: all 0.2s ease;
  line-height: 1;
}
.login-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #2563eb;
  text-align: center;
  margin-bottom: 32px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.tab {
  flex: 1;
  padding: 12px;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab:hover {
  background: #e5e7eb;
  color: #111827;
}

.tab.active {
  background: #2563eb;
  color: white;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.password-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.password-wrapper input {
  flex: 1;
}

.toggle-password {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s;
}

.toggle-password:hover {
  background: #f3f4f6;
}

.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary {
  background: #2563eb;
  color: white;
  margin-top: 8px;
}

.btn-primary:hover {
  background: #1e40af;
}

.btn-primary:disabled {
  background: #93c5fd;
  cursor: not-allowed;
}

.msg {
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
}

.msg-error {
  background: #fef2f2;
  color: #ef4444;
}

.msg-success {
  background: #ecfdf5;
  color: #10b981;
}

.link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: #2563eb;
  text-decoration: none;
}

.link:hover {
  color: #1e40af;
  text-decoration: underline;
}

.verify-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}
