@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-container {
  width: 1000px;
  max-width: 90%;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
}

.login-form-section {
  flex: 1;
  padding: 3.5rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-section {
  flex: 1;
  padding: 3rem;
  background: linear-gradient(145deg, #ffdc2e 0%, #ffd700 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

h2 {
  color: #2d3748;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
}

.form-group {
  width: 100%;
  max-width: 320px;
  margin-bottom: 1.5rem;
}

input {
  width: 100%;
  padding: 1rem 1.25rem; 
  
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px; 
  color: #2d3748;
  transition: all 0.2s ease;
}

input::placeholder {
  color: #a0aec0;
  font-style: italic;
  font-size: 14px; 
  
}

input:hover {
  border-color: #cbd5e0;
}

input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
  outline: none;
}

button {
  background: #ffd700;
  color: #f6faff;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  max-width: 320px;
  margin-top: 0.5rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

button:hover {
  background: #ffdc2e;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 215, 0, 0.2);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

button:disabled:hover {
  background: #e2e8f0;
  transform: none;
  box-shadow: none;
}

.logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  background: white;
  padding: 1rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.back-link {
  position: absolute;
  top: 15px;
  left: 15px;
  color: #2d3748;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  z-index: 100;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.back-link:hover {
  background: #ffd700;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

@media (max-width: 768px) {
  .logo-section {
    display: none;
  }
  h2 {
    color: #333;
    font-size: 26px;
    margin-bottom: 1rem;
  }

  .login-container {
    flex-direction: column;
    max-width: 90%;
    height: auto;
    border-radius: 20px;
    margin: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: #fff;
  }

  .login-form-section {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }

  .form-group {
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  input,
  button {
    width: 100%;
    max-width: 280px;
    box-sizing: border-box;
  }

  input {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1.5px solid #e2e8f0;
  }

  button {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15);
  }

  button:hover {
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.2);
  }

  .back-link {
    position: fixed;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    font-size: 12px;
    background: #fff;
    backdrop-filter: blur(5px);
  }
}

.error-message {
  color: #ff4d4f;
  font-size: 12px;
  margin-top: 4px;
  display: none;
  text-align: left;
  width: 100%;
}

.error-message.visible {
  display: block;
}

input.error {
  border-color: #ff4d4f;
}

input.error:focus {
  border-color: #ff4d4f;
  box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.1);
}
