* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(120deg, #fdf6e3, #f8f3ee);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.login-wrapper {
  display: flex;
  flex-wrap: wrap;
  max-width: 900px;
  width: 100%;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.login-left,
.login-right {
  flex: 1 1 300px;
  padding: 40px;
}

.login-left {
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
  color: #663300;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.login-left img {
  width: 180px;
  height: 180px; /* altura igual a la anchura */
  margin-bottom: 20px;
  padding: 10px;
  animation: fadeInScale 0.8s ease-out;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  object-fit: cover; /* mantiene proporción y recorta si es necesario */
}


.login-left h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.login-left p {
  font-size: 1rem;
}

.login-right {
  background-color: #fffaf0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-right h2 {
  font-weight: 700;
  color: #663300;
  margin-bottom: 25px;
  text-align: center;
}

form {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}

.input-group-text {
  border-radius: 10px 0 0 10px;
  background-color: #ffe6cc;
  border: none;
}

.form-control {
  border-radius: 0 10px 10px 0;
  border: none;
  padding: 10px 15px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.btn-primary {
  background-color: #ff7f50;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  padding: 10px;
  transition: 0.3s;
}

.btn-primary:hover {
  background-color: #e6733c;
}

.shadow-sm {
  box-shadow: rgba(0,0,0,0.1) 0px 2px 8px;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
  .login-wrapper {
    flex-direction: column;
    border-radius: 15px;
  }

  .login-left,
  .login-right {
    padding: 30px 20px;
  }

  .login-left img {
    width: 180px;
  }
}
