body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Top bar */
.top-bar {
  height: 40px;
  background-color: rgb(2, 37, 101);
  color: #fff;
  font-weight: bold;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
  font-size: 14px;
}

/* Bottom bar */
.bottom-bar {
  height: 40px;
  background-color: rgb(3, 37, 124);
  color: white;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 20px;
  font-size: 14px;
}

/* Main container */
.login-container {
  display: flex;
  height: calc(100vh - 80px);
  background-color: #666;
  /* flex-direction: row; */
}

/* Left panel */
.login-left {
  flex: 2;
  min-width: 300px;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Right panel */
.login-right {
  flex: 1;
  min-width: 300px;
  padding: 40px 20px;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.logo {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #004aad;
  display: flex;            /* Arrange children side by side */
  align-items: center;      /* Vertically align */
  justify-content: center;  /* Center horizontally */
  gap: 8px;                 /* Space between BTC and text */
}

.logo_img{
  width: 5rem;
  height: 5rem;
}

.logo span {
  display: inline;          /* Inline so it sits beside BTC */
  font-size: 18px;
  color: rgb(5, 77, 165);
}


/* Form */
.input-box {
  width: 84%;
  /* height: 30px; */
  padding: 12px;
  margin-bottom: 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  text-align: center;
  box-sizing: border-box;
}

.input-box.ng-invalid.ng-touched {
  border-color: red;
}

.form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Error */
.error-message {
  color: red;
  font-size: 16px;
  margin-bottom: 8px;
  text-align: center;
  width: 100%;
}

/* Login Button */
.login-btn {
  width: 84%;
  padding: 12px;
  background-color: #d0ddf5;
  border-color: black;
  color: rgb(2, 38, 138);
  font-size: 16px;
  margin-bottom: 16px;
  border-radius: 0.5rem;
  cursor: pointer;
}

.login-btn:hover{
  background-color:#073674e7 ;
  color: white;
}

/* Numpad */
.numpad {
  width: 80%;
}

.row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.row button {
  flex: 1;
  margin: 0 5px;
  padding: 14px;
  font-size: 18px;
  background-color: #d0ddf5;
  border-color: black;
  cursor: pointer;
  border-radius: 4px;
  color: rgb(3, 39, 122);
}



.back-btn {
  background-color: #7b9af1;
}

/* ───  FIELD WITH FLOATING LABEL  ───────────────────── */
.field-wrapper {
  position: relative;
  width: 84%;
  margin-bottom: 24px;
}
.input-box {
  width: 100%;
  padding: 18px 12px 8px;
  font-size: 16px;
  text-align: center;
  border: 2px solid #022f63;
  background-color: #d0ddf5;
  border-radius: 4px;
  background: transparent;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}
.field-wrapper.active .input-box {
  border: 2px solid #009fe3;
}
/* Floating label inside the input box, vertically centered */
.field-wrapper label {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 16px;
  color: #666;
  background: transparent;
  transition: all 0.18s cubic-bezier(.4,0,.2,1);
  padding: 0 12px;
  z-index: 2;
}

/* Float label above input when focused or filled */
.field-wrapper.active label,
.field-wrapper.filled label {
  left: 12px;
  right: auto;
  top: -10px;
  height: auto;
  font-size: 14px;
  color: #009fe3;
  background: #f4f4f4;
  padding: 0 4px;
  justify-content: flex-start;
  align-items: flex-end;
}

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

  .login-left {
    height: 200px;
    min-width: 100%;
    flex: none;
  }

  .bg-image {  html, body{
    overflow:auto;
}
    object-fit: cover;
    height: 100%;
    width: 100%;
  }

  /* Focus the entire login panel (inputs, buttons, numpad) in the center */
  .login-right {
    flex: none;
    width: 100%;
    padding: 20px;
    position: fixed;
    left: 50%;
    top: 51%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: #f4f4f4;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
    border-radius: 12px;
    /* Optional: add max-width for better appearance */
    max-width: 400px;
  }

  .numpad {
    max-width: 100%;
    position: static;
    left: auto;
    top: auto;
    transform: none;
    z-index: auto;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }

  .row button {
    font-size: 16px;
    padding: 12px;
  }
  

}


@media(min-height: 600px) and (max-height: 725px){
 .login-right{
  height: 100%;
 }
 .btn{
  height: 3rem;
 }
}