/* Keysight Theme - Override main styles to match Keysight visual identity */

/* Body and Layout */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: Roboto, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #262626 !important;
  text-align: left;
  /* Gradient fallback */
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 50%, #d5d5d5 100%) !important;
  /* Background image */
  background-image: url('../resources/bg-wave.png') !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  padding-top: 0 !important;
}

/* Header Styling */
header {
  /* position: relative; */
  left: 0;
  right: 0;
  top: 0;
  background-color: #fff;
  height: 60px;
  padding: 15px 37px;
  /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
}


/* Content Area */
.col-md-8.offset-md-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 0 auto;
  min-height: calc(100vh - 120px);
}

.col-md-8.offset-md-2 > .row {
  width: 100%;
}

/* Well/Form Styling */
.card {
  background-color: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
  padding: 30px;
  margin-bottom: 85px;
}

h2 {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
}

/* Primary Button - Keysight Red */
.btn-primary,
button[type="submit"].btn-primary {
  color: #fff;
  background-color: #e40029;
  border-color: #e40029;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-primary:hover,
button[type="submit"].btn-primary:hover {
  color: #fff;
  background-color: #be0022;
  border-color: #be0022;
}

.btn-primary:focus,
.btn-primary.focus,
button[type="submit"].btn-primary:focus {
  color: #fff;
  background-color: #be0022;
  border-color: #be0022;
  box-shadow: 0 0 0 0.2rem rgba(228, 0, 41, 0.5);
}

.btn-primary:active,
.btn-primary.active,
button[type="submit"].btn-primary:active {
  color: #fff;
  background-color: #b10020;
  border-color: #b10020;
}

.btn-primary.disabled,
.btn-primary:disabled {
  color: #fff;
  background-color: #e40029;
  border-color: #e40029;
  opacity: 0.65;
}

/* Secondary/Outline Button */
.btn-secondary,
.btn-outline-primary,
button.btn-secondary {
  color: #e40029;
  background-color: transparent;
  background-image: none;
  border-color: #e40029;
}

.btn-secondary:hover,
.btn-outline-primary:hover,
button.btn-secondary:hover {
  color: #fff;
  background-color: #e40029;
  border-color: #e40029;
}

.btn-secondary:focus,
.btn-outline-primary:focus,
button.btn-secondary:focus {
  color: #fff;
  background-color: #e40029;
  border-color: #e40029;
  box-shadow: 0 0 0 0.2rem rgba(228, 0, 41, 0.5);
}

.btn-secondary:active,
.btn-outline-primary:active,
button.btn-secondary:active {
  color: #fff;
  background-color: #b10020;
  border-color: #b10020;
}
.form-group{
      margin-bottom: 1.5rem !important;
          margin-top: 1.5rem !important;
}
.form-group label{
  font-size: 1rem;
  font-weight: 100;
  margin-bottom: 0.5rem;

}

/* Link Colors */
a {
  color: #e40029;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #be0022;
  text-decoration: underline;
}

/* Form Inputs */
.form-control {
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: #e40029;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(228, 0, 41, 0.25);
}

/* Small text/help text */
.form-text a,
small a {
  color: #262626;
}

.form-text a:hover,
small a:hover {
  color: #ae001e;
}

/* Footer Styling */
.footer {
  flex-shrink: 0;
  position: relative;
  bottom: 0;
  width: 100%;
  text-align: center;
  height: auto;
  min-height: 60px;
  background-color: #edecee;
  color: #A4A1A9;
  font-size: 0.9375rem;
  padding: 15px 0;
}

.footer .container {
  max-width: 100%;
}

.footer p {
  color: #A4A1A9;
  margin: 10px 0 0 0;
}

.footer a {
  color: #A4A1A9;
  transition: color 0.15s ease-in-out;
}

.footer a:hover {
  color: #e40029;
}

.footer .social {
  transition: opacity 0.15s ease-in-out;
}

.footer .social:hover {
  opacity: 0.7;
}

/* Alert Styling */
.alert {
  border-radius: 4px;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert .close{
  margin-right: 1rem;
}
/* Modal Styling - Floating Form Look */
.modal {
  text-align: center;
  padding: 0 !important;
}

.modal:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -4px;
}

.modal-dialog {
  display: inline-block;
  text-align: left;
  vertical-align: middle;
  width: 450px; /* Fixed width to match Keysight design */
  max-width: 90%; /* Responsive fallback */
  margin: 1.75rem auto; /* Default center alignment */
}

.modal-content {
  background-color: transparent;
  border: none;
  box-shadow: none;
}

.modal-header {
  background-color: transparent;
  border-bottom: none;
  text-align: center;
  padding-top: 30px;
}

.modal-title {
  font-weight: 100;
  letter-spacing: 2px;
  font-size: 32px;
  color: #444;
  text-align: center;
  text-transform: uppercase;
}

.modal-body {
  padding: 20px 40px;
  padding-top: 1.5rem;
}

.modal-footer {
  background-color: transparent;
  border-top: none;
  text-align: center;
  padding: 0px;
  padding: 20px 0px;
  gap: 1rem;
}

.modal-footer .btn + .btn{
  margin-left: 0px;
}

/* Login Form Specifics */
.log-in-form label {
  font-weight: normal;
  color: #333;
}

.forgotPasswordLink {
  font-size: 14px;
  color: #e40029;
}

.forgotPasswordLink:hover {
    color: #ae001e;
    text-decoration: underline;
}

/* Custom Checkbox Styling */
.form-check .form-check-label {
    font-size: 14px;
}

/* Ensure content location is centered properly */
.contentLocation .card,
.contentLocation form {
  text-align: left;
}

.contentLocation h2,
.contentLocation p.text-center {
  text-align: center;
  font-size: 1.75rem;
}

/* Button Block Styling */
.btn-block {
  display: block;
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .col-md-8.offset-md-2 {
    padding: 0 15px;
  }
  
  .card {
    padding: 20px;
  }

  .modal-dialog{
    width: 100%;
  } 

  .modal-body{
    padding: 15px;
  }

  header{
    padding: 15px 20px;
  }
}
