#auth-toggle {
  display: none;
}
.auth-split {
  display: flex;
  min-height: 100vh;
}

.panel-left {
  width: 45%;
  background: var(--vert-fonce);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 50px;
  margin: 10px 0 !important;
  border-radius: 0 50% 50% 0;
}

.panel-content {
  position: relative;
  z-index: 2;
  padding-left: 10px;
}

.brand-logo {
  width: auto;
  max-width: 180px;
  height: 60px;
  margin-bottom: 35px;
}

.brand-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.panel-headline {
  font-size: 2.8rem;
  color: var(--fotsy);
  margin-bottom: 20px;
}

.panel-headline span {
  color: var(--rouge);
}

.panel-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 40px;
}

/* Features List */
.features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rouge);
}

.feature-text strong {
  display: block;
  color: var(--fotsy);
  font-size: 0.9rem;
}

.feature-text span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}
.panel-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--fotsy);
}
.form-container {
  width: 100%;
  max-width: 400px;
}
.tab-switcher {
  display: flex;
  position: relative;
  background: #f1f1f1;
  border-radius: 50px;
  padding: 5px;
  margin-bottom: 35px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
}
.tab-label {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--mainty);
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
}
.tab-slider {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  background: var(--rouge);
  border-radius: 50px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
#auth-toggle:checked ~ .auth-split .tab-slider {
  transform: translateX(100%);
}
#auth-toggle:checked ~ .auth-split .tab-label-login {
  color: var(--mainty);
}
#auth-toggle:checked ~ .auth-split .tab-label-register {
  color: var(--fotsy);
}
.tab-label-login {
  color: var(--fotsy);
}
.forms-clip {
  overflow: hidden;
}
.forms-track {
  display: flex;
  width: 200%;
  transition: transform 0.5s ease;
}
#auth-toggle:checked ~ .auth-split .forms-track {
  transform: translateX(-50%);
}
.form-panel {
  width: 50%;
  padding: 0 5px;
}
.form-heading h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.form-heading p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 25px;
}
.input-group-custom {
  margin-bottom: 18px;
}
.input-label {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.input-wrap {
  position: relative;
}
.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
  transition: color 0.3s;
}
.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #adb5bd;
  transition: var(--transition);
  z-index: 10;
}
.toggle-password:hover {
  color: var(--rouge);
}
.input-field {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1.5px solid #eee;
  border-radius: 8px;
  background: var(--input-bg);
  font-weight: 500;
  transition: var(--transition);
  outline: none;
}
.input-field:focus {
  border-color: var(--rouge);
  box-shadow: 0 0 0 4px rgba(202, 0, 33, 0.05);
}
.input-field:focus ~ .input-icon {
  color: var(--rouge);
}

.input-extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  margin-bottom: 22px;
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}

.custom-check {
  width: 18px;
  height: 18px;
  border: 2px solid var(--mainty);
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.custom-check i {
  font-size: 0.55rem;
  color: transparent;
  transition: color 0.2s;
}

.checkbox-wrap:hover .custom-check {
  border-color: var(--mainty);
}

.checkbox-wrap:hover .custom-check i {
  color: var(--mainty);
}

.checkbox-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.forgot-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--link-color);
  text-decoration: none;
  transition: var(--transition);
}

.forgot-link:hover {
  color: var(--vert);
  text-decoration: underline;
}

/* Buttons */
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--rouge);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}

.btn-submit:hover {
  background: var(--rouge);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(202, 0, 33, 0.3);
}

.divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 25px 0;
  color: #ccc;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 800;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #eee;
}

.switch-text {
  text-align: center;
  margin-top: 25px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.switch-link {
  color: var(--rouge);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.switch-link:hover {
  text-decoration: underline;
}

@media (max-width: 850px) {
  .auth-split {
    flex-direction: column;
  }

  .panel-left {
    width: 100%;
    padding: 40px 30px;
    min-height: auto;
    border-radius: 0;
  }

  .panel-headline {
    font-size: 2rem;
  }

  .features {
    display: none;
  }
}
