/* General Body */
body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #f3f3f3;
  margin: 0;
}

/* Container for login */
.container {
  display: flex;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.15);
  overflow: hidden;
  width: 850px;
  max-width: 95%;
  height: 420px;
}

/* Logo section */
.logo-box {
  flex: 1;
  background: rgb(20, 150, 250);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.logo-box img {
  width: 80%;
  height: auto;
  object-fit: contain;
}

/* Login section */
.login-box {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-box h2 {
  text-align: center;
  margin-bottom: 25px;
  color: rgb(20, 150, 250);
  font-size: 26px;
}

/* Input fields */
.input-field {
  width: 100%;
  padding: 14px;
  margin-bottom: 20px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
  box-sizing: border-box;
}

/* Login button */
.login-btn {
  width: 100%;
  padding: 15px;
  background: rgb(20, 150, 250);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 17px;
  transition: 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-btn:disabled {
  background: rgb(20, 150, 250);
  cursor: not-allowed;
}

/* Spinner inside button */
.spinner {
  border: 3px solid #fff;
  border-top: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  animation: spin 0.8s linear infinite;
  display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error message */
.error {
  color: red;
  margin-bottom: 15px;
  text-align: center;
  font-size: 15px;
  display: none;
}

/* Back home link */
.back-home {
  text-align: center;
  margin-top: 15px;
}

.back-home a {
  color: rgb(20, 150, 250);
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
  transition: 0.3s;
}

.back-home a:hover {
  color: rgb(20, 150, 250);
}

/* Responsive */
@media(max-width: 768px) {
  .container {
    flex-direction: column;
    height: auto;
  }
  .logo-box {
    padding: 30px;
  }
  .login-box {
    padding: 30px;
  }
}
