:root {
  --brand-primary: #294985;
  --text-main: #1f1f1f;
  --text-muted: #8b8b8b;
  --bg-light: #efefef;
  --border: #d8d8d8;
  --white: #ffffff;
  --focus-ring: #7d9ad5;
  --radius-md: 10px;
  --radius-lg: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  color: var(--text-main);
}
input:focus-visible{box-shadow: unset;outline: 0;}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.auth-page {
  min-height: 100vh;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 820px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 80px;
}

.auth-logo {
  width: 350px;
  margin: 0 auto 50px;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-title {
  margin: 0;
  font-family: "Raleway", "Segoe UI", Arial, sans-serif;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 600;
}

.auth-subtitle {
  /* margin: 8px 0 0; */
  margin: 15px 0 0;
  color: var(--text-muted);
  /* font-size: 0.95rem; */
  font-size: 20px;
  line-height: 20px;
}

.auth-form {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.form-row-full {
  grid-column: 1 / -1;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: "Raleway", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

.form-control {
  width: 100%;
  min-height: 46px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 15px;
  color: #000;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control::placeholder{
  color: #33333380;
  font-size: 16px;
  line-height: 20px;
}
.form-control:focus-visible, .form-control:focus{outline: 0;box-shadow: unset;}

.form-control::placeholder {
  color: #b3b3b3;
}

/* .form-control:focus-visible {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus-ring) 40%, transparent);
} */

form select.form-control {
  appearance: none;           /* Remove default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url('../images/form-select-option-arrow.png');
  background-repeat: no-repeat;
  background-position: right 15px center; /* adjust position */
  background-size: 12px; /* adjust size as needed */

  padding-right: 40px; /* space for arrow */
  cursor: pointer;
}

.auth-options {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
}

.checkbox-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkbox-group input[type="checkbox"] {
  /* width: 16px;
  height: 16px; */
  height: 20px;
  width: 20px;
  accent-color: var(--brand-primary);
  margin: 0;
}

.auth-link {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-link.forgot-password{
  text-decoration: none;
  color: #333333CC;
}
.btn-primary {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  margin-top: 40px;
  width: 100%;
  min-height: 65px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--brand-primary);
  color: var(--white);
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.btn-primary:hover {
  filter: brightness(1.04);
}

.btn-primary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus-ring) 55%, transparent);
  outline-offset: 1px;
}

.auth-footer-text {
  margin: 40px 0 0;
  text-align: center;
  font-size: 16px;
  color: #333;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile */
@media (max-width: 575.98px) {


  .auth-page {
    padding: 12px;
  }

  .auth-card {
    padding: 28px 16px;
    border-radius: 14px;
  }

  .auth-logo {
    width: 220px;
    margin-bottom: 36px;
  }

  .auth-title {
    font-size: 30px;
  }

  .auth-subtitle {
    font-size: 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-label,
  .auth-options {
    font-size: 16px;
  }

  .btn-primary {
    /* min-height: 65px; */
    min-height: 50px;
        font-size: 16px;
  }




  .form-control{
    padding: 12px 15px;
    border-radius: 7px;
  }
.checkbox-group input[type="checkbox"]{
width: 18px;
height: 18px;}







}


@media (max-width:428.99px) {
  .form-label,
  .auth-options {
    font-size: 14px;
  }
  
}

/* Mobile landscape */
@media (max-width: 767.98px) and (orientation: landscape) {
  .auth-page {
    padding: 14px;
  }

  .auth-card {
    padding: 24px 20px;
  }

  .auth-logo {
    width: 200px;
    margin-bottom: 28px;
  }

  .auth-title {
    font-size: 32px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* IPAD */
@media (min-width: 768px) and (max-width: 991.98px) {
  .auth-page {
    padding: 20px;
  }

  .auth-card {
    padding: 44px 34px;
  }

  .auth-logo {
    width: 270px;
    margin-bottom: 44px;
  }

  .auth-title {
    font-size: 34px;
  }

  .form-grid {
    gap: 22px;
  }

.form-label{font-size: 17px;}
.auth-subtitle{font-size: 16px;line-height: 16px;}
  .auth-options{font-size: 16px;}
  .form-control{padding: 15px 18px;}
  .checkbox-group input[type="checkbox"] {
    height: 18px;
    width: 18px;}
}

/* IPAD Pro */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .auth-card {
    padding: 60px 54px;
  }

  .auth-logo {
    width: 310px;
    margin-bottom: 52px;
  }

  .auth-title {
    font-size: 36px;
  }

  .form-grid {
    gap: 24px;
  }
}

/* Laptop 1200 to 1399 */
@media (min-width: 1200px) and (max-width: 1399.98px) {

  .auth-subtitle{
    font-size: 16px;
    line-height: 16px;
  }
  .auth-card {
    padding: 72px 64px;
  }

  .auth-logo {
    width: 330px;
    margin-bottom: 56px;
  }

  .auth-title {
    font-size: 38px;
  }

  .form-grid {
    gap: 26px;
  }
 
  .form-label{font-size: 16px;}
  .form-control{
    padding: 15px 18px;
    
  }
  .form-control::placeholder{font-size: 14px;}
.checkbox-group input[type="checkbox"]{
  width: 18px;
  height: 18px;
}
.auth-options{font-size: 17px;}
}
/* .form-control.is-invalid {
    border: 1px solid #dc3545 !important;
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.15);
} */

.error-message,
.invalid-feedback {
    display: block;
    color: #dc3545;
    font-weight: 500;
}







@media (min-width: 1401px) and (max-width: 1800px) {
  .auth-subtitle{
    font-size: 16px;
    line-height: 16px;
  }
  
  .auth-logo{
    width: 320px;
  }
  .auth-card{
    padding: 60px;
  }


.form-control{padding: 16px 20px;}

}


@media (min-width: 992px) and (max-width: 1199.98px) {
  
.portal-user img.avatar {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius: 50%;
    
}
}