@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

html,
body {
  height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.65) 100%), 
              url('/images/bg-login.jpg') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #f4efe8;
  margin: 0;
}

.form-signin {
  width: 100%;
  max-width: 400px;
  padding: 2.5rem;
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.form-signin:hover {
  border-color: rgba(200, 122, 75, 0.3);
  box-shadow: 0 20px 40px rgba(200, 122, 75, 0.15);
}

.form-signin h1 {
  font-weight: 700;
  font-size: 1.75rem;
  color: #fff;
  text-align: center;
  margin-bottom: 1.75rem;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-floating {
  margin-bottom: 1rem;
}

.form-floating > .form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 10px;
  height: 58px;
  transition: all 0.2s ease;
}

.form-floating > .form-control:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #c87a4b;
  color: #fff;
  box-shadow: 0 0 0 0.25rem rgba(200, 122, 75, 0.25);
}

.form-floating > label {
  color: rgba(255, 255, 255, 0.5);
  padding-left: 1rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: #c87a4b !important;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating > .form-control:focus ~ label::after,
.form-floating > .form-control:not(:placeholder-shown) ~ label::after {
  background-color: transparent !important;
}

/* Custom Checkbox */
.form-check {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-check-input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  width: 1.1em;
  height: 1.1em;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.form-check-input:checked {
  background-color: #c87a4b;
  border-color: #c87a4b;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(200, 122, 75, 0.25);
  border-color: #c87a4b;
}

.form-check-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

/* Premium Button */
.btn-primary {
  background: linear-gradient(135deg, #c87a4b 0%, #9e5a32 100%);
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(200, 122, 75, 0.25);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d48a5c 0%, #b0693f 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 122, 75, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(200, 122, 75, 0.3);
}

.text-muted {
  color: rgba(255, 255, 255, 0.4) !important;
  text-align: center;
  font-size: 0.85rem;
}

/* Autofill style fix */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(30, 30, 30, 0.9) inset !important;
  -webkit-text-fill-color: #fff !important;
}
