@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
  --primary: #4facfe;
  --secondary: #00f2fe;
  --robot-bg: #eef2f3;
  --robot-body: #ffffff;
  --robot-dark: #2d3436;
  --bg-color: #f8f9fa;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-color);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.main-container {
  background: #fff;
  width: 900px;
  height: 550px;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  display: flex;
  overflow: hidden;
  position: relative;
}

/* --- MASCOT AREA (LEFT) --- */
.mascot-wrapper {
  width: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Robot Construction */
.robot {
  position: relative;
  width: 160px;
  height: 200px;
  transition: all 0.3s ease;
}

.head {
  width: 120px;
  height: 100px;
  background: var(--robot-body);
  border-radius: 25px;
  position: absolute;
  top: 30px;
  left: 20px;
  z-index: 2;
  box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.antenna {
  width: 6px;
  height: 30px;
  background: var(--robot-dark);
  position: absolute;
  top: 0;
  left: 77px;
  z-index: 1;
}

.bulb {
  width: 14px;
  height: 14px;
  background: #ff7675;
  border-radius: 50%;
  position: absolute;
  top: -10px;
  left: -4px;
  box-shadow: 0 0 10px #ff7675;
  animation: blink 2s infinite;
}

.eyes {
  display: flex;
  justify-content: space-between;
  padding: 0 25px;
  margin-top: 35px;
}

.eye {
  width: 18px;
  height: 18px;
  background: var(--robot-dark);
  border-radius: 50%;
  transition: all 0.3s;
}

.mouth {
  width: 20px;
  height: 6px;
  background: var(--robot-dark);
  border-radius: 10px;
  margin: 15px auto;
  opacity: 0.3;
}

.body {
  width: 100px;
  height: 80px;
  background: var(--robot-body);
  border-radius: 0 0 30px 30px;
  position: absolute;
  top: 120px;
  left: 30px;
  z-index: 1;
}

.chest-screen {
  width: 60px;
  height: 40px;
  background: var(--robot-dark);
  margin: 10px auto;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heartbeat {
  width: 40px;
  height: 2px;
  background: #00cec9;
  box-shadow: 0 0 5px #00cec9;
}

.hands {
  width: 100%;
  position: absolute;
  top: 130px;
}

.hand {
  width: 25px;
  height: 50px;
  background: var(--robot-body);
  border-radius: 15px;
  position: absolute;
  top: 0;
  transition: all 0.3s ease;
}

.hand.left {
  left: 5px;
  transform-origin: top center;
}

.hand.right {
  right: 5px;
  transform-origin: top center;
}

.shadow {
  width: 100px;
  height: 10px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  position: absolute;
  bottom: -20px;
  left: 30px;
  filter: blur(2px);
}

/* --- ANIMATION STATES --- */

/* 1. Waving (Name Input) */
.robot.waving .hand.right {
  transform: rotate(-150deg);
  animation: waveHand 1s infinite alternate;
}

@keyframes waveHand {
  from {
    transform: rotate(-130deg);
  }

  to {
    transform: rotate(-170deg);
  }
}

/* 2. Reading (Email Input) */
.robot.reading .head {
  transform: translateY(10px) rotate(-5deg);
}

.robot.reading .eye {
  height: 5px;
  /* Squint */
  transform: scaleX(1.2);
}

/* 3. Shy/Hide (Password Input) */
.robot.shy .hand.left {
  transform: rotate(140deg) translateX(20px) translateY(-10px);
  z-index: 10;
}

.robot.shy .hand.right {
  transform: rotate(-140deg) translateX(-20px) translateY(-10px);
  z-index: 10;
}

.robot.shy .eye {
  background: #ff7675;
  /* Blushing eyes */
}

/* --- FORM AREA (RIGHT) --- */
.form-wrapper {
  width: 50%;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header h2 {
  color: var(--robot-dark);
  margin-bottom: 5px;
}

.header p {
  color: #b2bec3;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.input-group {
  margin-bottom: 20px;
  position: relative;
}

.input-group label {
  display: block;
  font-size: 0.8rem;
  color: #636e72;
  margin-bottom: 5px;
  font-weight: 600;
}

.input-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #dfe6e9;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: 0.3s;
  font-family: 'Poppins', sans-serif;
}

.input-group input:focus {
  border-color: var(--primary);
  background: #f0f9ff;
}

.btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--robot-dark);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
}

.btn-submit:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.footer-link {
  margin-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #636e72;
}

.footer-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

@keyframes blink {

  0%,
  90% {
    opacity: 1;
  }

  95% {
    opacity: 0.2;
  }

  100% {
    opacity: 1;
  }
}