/* Login page styles and the small set of shared rules it requires. */
:root {
  --sd-primary: #5f7f3c;
  --sd-secondary: #789b4b;
  --sd-primary-deep: #30452a;
  --sd-border: #d9ddc5;
  --sd-text: #35442e;
  --sd-text-soft: #68735a;
  --sd-shadow: 0 10px 24px rgba(62, 77, 39, 0.16);
  --sd-teal-dark: #304d2d;
  --sd-teal: #6f963f;
  --sd-font-body: 15px;
  --sd-font-small: 0.875rem;
  --sd-font-label: 0.925rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  font-size: var(--sd-font-body);
}

body,
body * {
  line-height: 1.45;
}

body,
body * {
  font-family:
    "Segoe UI", "Segoe UI Emoji", "Segoe UI Symbol", Arial, sans-serif;
}

label,
.form-label,
.control-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--sd-text);
  margin-bottom: 0.45rem;
}

.form-control,
.form-select,
input,
select,
textarea {
  border: 1px solid var(--sd-border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: var(--sd-text);
  box-shadow: none;
  font-size: 15px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--sd-secondary);
  box-shadow: 0 0 0 0.2rem rgba(111, 150, 63, 0.2);
  outline: none;
}

.btn,
button {
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn:hover,
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(62, 77, 39, 0.18);
  /* background: #613108; */

}

.btn-success {
  background: linear-gradient(135deg, #58783a, #789b4b);
  /* background:#866241 !important; */
  border-color: transparent;
  color: #fff;
}

.sd-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.sd-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background-image: url("../../images/login.png") !important;
  background-size: cover;
  background-position: center center !important;
  background-repeat: no-repeat;
  padding: 1rem;
}

.sd-login-card {
  width: 100%;
  max-width: 380px;
  background: #fffef8;
  border-radius: 16px;
  border: 1px solid var(--sd-border);
  box-shadow: 0 12px 40px rgba(77, 63, 39, 0.2);
  overflow: hidden;
}

.sd-login-head {
  background: linear-gradient(135deg, var(--sd-teal-dark), var(--sd-teal));
  color: #fff;
  padding: 1.5rem;
  text-align: center;
}

.sd-login-head .sd-logo {
  margin-left: auto;
  margin-right: auto;
}

.sd-login-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.sd-login-msg:empty {
  display: none !important;
  margin: 0 !important;
}

.sd-login-footer {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0;
}

.sd-login-body a {
  color: #58783a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.sd-login-body a:hover {
  color: #304d2d;
  text-decoration: none;
}

.sd-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.sd-password-wrapper .form-control {
  padding-right: 3rem;
}

.sd-toggle-password {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--sd-text-soft);
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  font-size: 1rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.sd-toggle-password:hover {
  color: var(--sd-text);
  background: rgba(95, 127, 60, 0.1);
  transform: translateY(-50%) scale(1.05);
  box-shadow: none;
}

.sd-toggle-password:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(111, 150, 63, 0.25);
}
