/* Temel stil ayarları */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --linear-grad: linear-gradient(to right, #c03535, #ff4b4b);
  --grad-clr1: #c03535;
  --grad-clr2: #ff4b4b;
}

body {
  height: 100vh; 
  background: #f6f5f7;
  display: grid;
  place-content: center; 
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

.auth-toggle {
  display: none;
}

.auth-toggle .toggle-btn {
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  font-size: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  cursor: pointer;
}

.auth-toggle .toggle-btn.is-active {
  background: var(--grad-clr2);
  border-color: var(--grad-clr1);
  color: #fff;
}

@media (min-width: 769px) {
  .auth-toggle {
    display: none !important;
  }
}

.container {
  position: relative; 
  width: 850px;
  height: 500px; 
  background-color: #FFF;
  box-shadow: 25px 30px 55px #5557;
  border-radius: 13px;
  overflow: hidden;
}

.form-container {
  position: absolute; 
  width: 60%;
  height: 100%;
  padding: 0px 40px; 
  transition: all 0.6s ease-in-out;
}

.sign-up-container {
  opacity: 0;
  z-index: 1;
}

.sign-in-container {
  z-index: 2;
}

form {
  height: 100%;
  display: flex; 
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0px 50px;  
}

h1 {
  color: #333;
}

.social-container {
  margin: 20px 0px; 
}

.social-container a {
  border: 1px solid #DDD;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0px 5px; 
  height: 40px;
  width: 40px;
}

span {
  font-size: 12px;
}

.infield {
  position: relative;
  margin: 8px 0px; 
  width: 100%;
}

input {
  width: 100%;
  padding: 12px 15px; 
  background-color: #f3f3f3;
  border: none;
  outline: none;
}

label {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background: var(--linear-grad);
  transition: width 0.3s ease;
}

input:focus ~ label {
  width: 100%;
}

a {
  color: #333;
  font-size: 14px;
  text-decoration: none; 
  margin: 15px 0px;
}

a.forgot {
  padding-bottom: 3px;
  border-bottom: 2px solid #EEE; 
}

/* Desktop overlay layout */
.overlay-container {
  position: absolute;
  top: 0;
  left: 60%;
  width: 40%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.6s ease-in-out;
  z-index: 9;
}

#overlayBtn {
  cursor: pointer;
  position: absolute;
  left: 50%;
  top: 304px;
  transform: translateX(-50%);
  width: 143.67px;
  height: 40px;
  border: 1px solid #FFF;
  background: transparent;
  border-radius: 20px;
}

.overlay {
  position: relative;
  background: var(--linear-grad);
  color: #FFF;
  left: -150%;
  height: 100%;
  width: 250%;
  transition: transform 0.6s ease-in-out;
}

.overlay-panel {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  text-align: center;
  height: 100%;
  width: 340px;
  transition: 0.6s ease-in-out;
}

.overlay-left {
  right: 60%;
  transform: translateX(-12%);
}

.overlay-right {
  right: 0;
  transform: translateX(0%);
}

.overlay-panel h1 {
  color: #FFF;
}

.overlay-panel button {
  border: none;
  background-color: transparent;
  color: #FFF;
}

.right-panel-active .overlay-container {
  transform: translateX(-150%);
}

.right-panel-active .overlay {
  transform: translateX(50%);
}

.right-panel-active .overlay-left {
  transform: translateX(25%);
}

.right-panel-active .overlay-right {
  transform: translateX(35%);
}

.right-panel-active .sign-in-container {
  transform: translateX(20%);
  opacity: 0;
}

.right-panel-active .sign-up-container {
  transform: translateX(66.7%);
  opacity: 1;
  z-index: 5;
  animation: show 0.6s;
}

@keyframes show {
  0%, 50% {
    opacity: 0;
    z-index: 1;
  }
  50.1%, 100% {
    opacity: 1;
    z-index: 5;
  }
}

.btnScaled {
  animation: scaleBtn 0.6s;
}

@keyframes scaleBtn {
  0% {
    width: 143.67px;
  }
  50% {
    width: 250px;
  }
  100% {
    width: 143.67px;
  }
}

.square {
  position: absolute;
  height: 400px;
  top: 50%;
  left: 40%;
  transform: translate(181%, 11%);
  opacity: 0.2;
}

.big-circle {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #ffffff, #ffffff);
  bottom: 60%;
  right: 50%;
  transform: translate(-40%, 38%);
}

.inner-circle {
  position: absolute;
  width: 72%;
  height: 72%;
  background-color: rgba(255, 255, 255, 0);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Clean mobile layout for auth */
@media (max-width: 768px) {
  body {
    height: auto;
    min-height: 100vh;
    overflow: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .auth-toggle {
    display: inline-flex;
    gap: 8px;
    margin: 0 auto 14px;
    padding: 6px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  }

  .container {
    width: 92%;
    max-width: 420px;
    min-height: 520px;
    height: auto;
    padding: 16px 0;
    overflow: hidden;
    position: relative;
  }

  .container .auth-toggle {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
  }

  form {
    padding: 0 24px;
    padding-top: 20px;
  }

  h1 {
    font-size: 26px;
    text-align: center;
  }

  .social-container {
    margin: 16px 0;
    display: flex;
    gap: 10px;
  }

  .social-container a {
    height: 36px;
    width: 36px;
  }

  span {
    text-align: center;
    display: block;
    margin-bottom: 10px;
  }

  input {
    font-size: 14px;
  }

  .form-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px 20px;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .sign-in-container {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
  }

  .sign-up-container {
    opacity: 0;
    transform: translateX(100%);
    z-index: 1;
  }

  .right-panel-active .sign-up-container {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
  }

  .right-panel-active .sign-in-container {
    opacity: 0;
    transform: translateX(-100%);
    z-index: 1;
  }

  .overlay-container {
    display: none !important;
  }

  .square {
    display: none;
  }

  .big-circle {
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: 10%;
    transform: none;
  }
}

@media (max-width: 480px) {
  form {
    padding: 0 16px;
  }

  button {
    padding: 10px 20px;
    font-size: 11px;
  }

  .social-container a {
    height: 32px;
    width: 32px;
  }

  .square,
  .big-circle {
    display: none;
  }
}
