body {
    margin: 0;
    height: 100vh;
    background: #0a0a0a;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.bg-noise {
    position: fixed;
    inset: 0;
    background-image: url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
    opacity: 0.08;
    pointer-events: none;
}

.login-stage {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-panel {
    width: 950px;
    height: 520px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(145deg, #ffffff, #f2f2f2);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.4);
}

.login-brand {
    background: #0d0d0d;
    color: #fff;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.logo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 15px 40px rgba(255,255,255,0.08), inset 0 0 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.logo-circle img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    transform: scale(1.5);
    transition: 0.3s ease;
}
.login-brand h1 {
    font-size: 32px;
    letter-spacing: 4px;
    margin: 0;
}

.login-brand span {
    font-size: 11px;
    letter-spacing: 2px;
    color: #aaa;
    margin-top: 5px;
}

.login-brand p {
    margin-top: 20px;
    font-size: 13px;
    color: #bbb;
    line-height: 1.6;
}

.line {
    margin-top: 25px;
    width: 60px;
    height: 2px;
    background: #fff;
    opacity: 0.4;
}

.login-form {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.login-form h2 {
    font-size: 24px;
    margin: 0;
    color: #111;
}

.sub {
    font-size: 13px;
    color: #888;
    margin-bottom: 30px;
}

.field {
    position: relative;
    margin-bottom: 25px;
}

.field input {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 2px solid #ddd;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.field label {
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 13px;
    color: #999;
    transition: 0.3s ease;
    pointer-events: none;
}

.underline {
    height: 2px;
    width: 0%;
    background: #000;
    transition: 0.3s;
}

.field input:focus ~ .underline {
    width: 100%;
}

.field input:focus + label,
.field input:valid + label {
    top: -12px;
    font-size: 11px;
    color: #000;
}

#loginBtn {
    width: 100%;
    padding: 12px;
    background: #3a3a3a !important;
    color: #fff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease;
    margin-top: 10px;
    letter-spacing: 0.5px;
    appearance: none;
}

#loginBtn:hover {
    background: #555555 !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

#loginBtn:active {
    transform: translateY(0px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.back-home {
  margin-top: 12px;
  text-align: center;
}

.back-home a {
  display: inline-block;
  font-size: 12px;
  color: #666;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.02);
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.back-home a:hover {
  color: #111;
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

.back-home a:active {
  transform: translateY(0);
}

.meta {
    margin-top: 20px;
    font-size: 11px;
    color: #aaa;
    text-align: center;
    letter-spacing: 1px;
}

.register-link {
  margin-top: 15px;
  font-size: 13px;
  text-align: center;
  color: #777;
}

.register-link a {
  color: #c0392b;
  text-decoration: none;
  font-weight: 500;
}

.register-link a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {

  body {
    overflow: auto;
  }

  .login-stage {
    padding: 20px;
  }

  .login-panel {
    width: 100%;
    height: auto;
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

  .login-brand {
    display: none !important;
  }

  .login-form {
    padding: 30px 22px;
  }

  .login-form h2 {
    font-size: 20px;
  }

  .sub {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .field {
    margin-bottom: 18px;
  }

  .field input {
    font-size: 13px;
  }

  .field label {
    font-size: 12px;
  }

  #loginBtn {
    padding: 9px 10px;
    font-size: 12px;
    border-radius: 7px;
    letter-spacing: 0.3px;
    margin-top: 8px;
  }

  .back-home {
    margin-top: 10px;
  }

  .back-home a {
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 6px;
  }

  .meta {
    font-size: 10px;
    margin-top: 15px;
  }

  .register-link {
    font-size: 12px;
  }

  .bg-noise {
    opacity: 0.05;
  }

}