/* Login page styles aligning with dashboard colors */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  background-image: url(../images/background.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 20px;
}

.card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-header {
  background: linear-gradient(135deg, #144b29 0%, #246038 100%);
  color: #ffffff;
  font-weight: 700;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  text-align: center;
  padding: 25px;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.card-body {
  padding: 26px;
  background-color: rgba(255, 255, 255, 0.98);
}

input.form-control {
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  padding: 10px 10px;
  font-size: 18px;
  transition: all 0.3s ease;
  background-color: #fafafa;
}

input.form-control:focus {
  box-shadow: 0 0 0 0.3rem rgba(10, 42, 22, 0.15);
  border-color: #0a2a16;
  background-color: #ffffff;
  outline: none;
}

.form-label {
  font-weight: 600;
  color: #0a2a16;
  margin-bottom: 8px;
  font-size: 18px;
}

.btn-primary {
  background: linear-gradient(135deg, #144b29 0%, #246038 100%);
  border: none;
  color: #ffffff;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(10, 42, 22, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1a4a2a 0%, #0a2a16 100%);
  box-shadow: 0 6px 16px rgba(10, 42, 22, 0.3);
  transform: translateY(-2px);
}

.btn-primary:focus {
  background: linear-gradient(135deg, #1a4a2a 0%, #0a2a16 100%);
  box-shadow: 0 0 0 0.25rem rgba(10, 42, 22, 0.25);
  outline: none;
}

#msg {
  min-height: 1.25rem;
  color: #dc3545;
  font-weight: 500;
  font-size: 18px;
}

@media (max-width: 576px) {
  .container {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* Professional icon-only password toggle matching theme */
.icon-toggle {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0a2a16;
  cursor: pointer;
  border-left: none;
  border-radius: 0 10px 10px 0;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.icon-toggle:hover {
  background: rgba(10, 42, 22, 0.04);
}

.icon-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 0.15rem rgba(10, 42, 22, 0.12);
}

.input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group {
  align-items: center;
}

.icon-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}
