/* ---------- Base ---------- */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins/poppins-v5-latin-regular.woff2") format("woff2");
  font-weight: 400;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins/poppins-v5-latin-600.woff2") format("woff2");
  font-weight: 600;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Poppins, system-ui, -apple-system, sans-serif;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
}

/* ---------- Card ---------- */
.container {
  width: auto;
  max-width: 90%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  overflow: hidden;
  padding: 40px;
}

.signin-content {
  display: flex;
  gap: 0;
}

/* ---------- Image ---------- */
.signin-image {
  width: 50%;
  /* background: #f9fafb; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.signin-image img {
  max-width: 90%;
  height: auto;
}

/* ---------- Form ---------- */
.signin-form {
  width: 50%;
  padding: 40px;
}

.top-bar {
  position: relative;
  text-align: center;
  margin-bottom: 24px;
}

.app-title {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.back-btn {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
}

.back-btn:hover {
  background: #1e40af;
}


.form-title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 24px;
}

/* ---------- Inputs ---------- */
.form-group {
  position: relative;
  margin-bottom: 20px;
}

input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #d1d5db;
  padding: 8px 32px;
  font-size: 14px;
}

input:focus {
  outline: none;
  border-bottom-color: #2563eb;
}

label {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
}

.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #9ca3af;
}

.toggle-password:hover {
  color: #111827;
}

/* ---------- Button ---------- */
.form-submit {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.form-submit:hover {
  background: #1e40af;
}

/* ---------- Links ---------- */
.forgot-link {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
}

.forgot-link:hover {
  color: #111827;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .signin-content {
    flex-direction: column;
  }

  .signin-image,
  .signin-form {
    width: 100%;
  }

  .signin-form {
    padding: 30px 24px;
  }

  .back-home {
    position: static;
    transform: none;
    display: inline-block;
    margin-bottom: 10px;
  }
}


@media screen and (min-width: 1024px) {
  body {
    background: url("../images/login-bg.jpg") no-repeat center center fixed;
    background-size: cover;
    overflow: hidden;
    /* Zoom effect */
    transform: scale(1.25);
    /* 125% zoom */
    transform-origin: center;
    /* keep it centered while scaling */

  }

  .main {
    background: transparent;
    /* remove gray */
    padding: 80px 0;
    /* space around card */
  }
}