:root {
    --primary-blue: #67A3D7;
    --light-blue: #e0f2f7;
    --accent-blue: #17a2b8;
    --dark-blue: #1c5d9e;
    --light-blue2:  #c1e2f4;
    --light-blue3:  #c3e3f5;

    --sidebar-bg: #67A3D7;
    --sidebar-hover: #488cd4;
    --sidebar-active: #34699A;
    --sidebar-submenu-bg: #6ba7e7;

    --white: #ffffff;
    --black: #333333;
    --gray-light: #f8f9fa;
    --gray-medium: #dee2e6;
    --text-color: #495057;
    --shadow: rgba(0, 0, 0, 0.1);

    --color-1: #F5A0C6;
    --color-2: #C2DFF1;
    --color-3: #63C276;
    --color-4: #8BCBF3;
    --color-5: #8AB1D8;

    --color-6: #90A0BB;
    --color-7: #030303;
    --color-8: #BBC6D9;
    --color-9: #8D8C8F;
    --color-10: #b48dca;

    --event-meeting: #a2c4f7;
    --event-party: #fcd994;
    --event-holiday: #f7a2a2;
    --event-training: #a2f7c4;
    --event-deadline: #c8a2f7;
    --event-others: #cccccc;

    --ql-hr-color: #e67e22;
    --ql-ba-color: #3498db;
    --ql-dem-color: #9b59b6;
    --ql-learning-color: #27ae60;
    --ql-pos-color: #e74c3c;
    --ql-ticket-color: #f1c40f;
    --ql-wh-color: #1abc9c;
    --ql-ev-color: #34495e;
}

body:has(section#sign-wrapper){
    background: linear-gradient(135deg, var(--light-blue2) 0%, #c4e4f5 100%);
    /* background: linear-gradient(135deg, var(--light-blue3) 0%, #c4e4f5 100%); */
    /* background: linear-gradient(135deg, var(--light-blue) 0%, #c4e4f5 100%); */
    /* background: linear-gradient(135deg, var(--primary-blue) 0%, #c4e4f5 100%); */
    /* background: var(--primary-blue); */

    min-height: 100vh;
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
}

body:has(section#sign-wrapper) section#sign-wrapper{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

section#sign-wrapper,
section#sign-wrapper *{
    box-sizing: border-box;
    width: auto;
}

section#sign-wrapper{
    min-height: 100vh;
    font-family: "Noto Sans Thai","Inter",sans-serif;
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

section#sign-wrapper > div#sign-wrapper > div#sign-wrapper{
    height: auto !important;
    width: 350px;
    /* width: 100%; */
    /* max-width: 420px; */
    background-color: var(--white);
    padding: 40px;
    /* border-radius: 15px; */
    border-radius: 40px;
    box-shadow: 0 10px 30px var(--shadow);
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.brand img {
    width: 120px;
    height: 120px;
    
    border-radius: 10px;
    object-fit: contain;
    /* margin-bottom: 5px; */
}

.brand h3 {
    font-size: 1.6em;
    color: var(--primary-blue);
    margin-bottom: 5px;
    font-weight: 700;
}

.brand p {
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 20px;
}

.sign-header {
    display: none;
}

.sign-body {
    background-color: var(--white);
    margin: 0px;
    padding: 15px 0px;
}




section#sign-wrapper .sign-body .form-group{
  position: relative;
  text-align: left;
  margin-bottom: 22px;
}

/* label */
section#sign-wrapper .sign-body .form-group:has(input[name="username"])::before{
  content: "Username";
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 16px;
  color: var(--dark-blue);
}
section#sign-wrapper .sign-body .form-group:has(input[name="password"])::before{
  content: "Password";
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-blue);
}

/* input-group */
section#sign-wrapper .sign-body .input-group{
  position: relative;
  display: inline-block !important;
  width: 100% !important;
  vertical-align: top;
  --ih: 46px;                        /* input height*/
  --label-gap: 0px;                  
}

/* input */
section#sign-wrapper .sign-body .input-group .form-control{
  width: 100% !important;
  height: var(--ih) !important;
  padding: 12px 12px 12px 45px !important;
  border: 1px solid var(--gray-medium) !important;
  border-radius: 8px !important;
  background: #eaf1ff;
  box-shadow: none !important;
}

/* focus */
section#sign-wrapper .sign-body .input-group .form-control:focus{
  border-color: var(--primary-blue) !important;
  box-shadow: 0 0 8px rgba(103,163,215,.35) !important;
  outline: none;
}

/* icon */
section#sign-wrapper .sign-body .input-group-addon{
  position: absolute !important;
  left: 5px !important;
  top: calc((var(--ih) / 2) + var(--label-gap)) !important;
  transform: translateY(-50%) !important;

  display: block !important;
  float: none !important;
  width: auto !important;
  height: auto !important;

  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;

  line-height: 1 !important;
  color: var(--gray-medium);
  pointer-events: none;
  z-index: 10;
}

/* icon focus */
section#sign-wrapper .sign-body .form-control:focus ~ .input-group-addon{
  color: var(--primary-blue);
}





section#sign-wrapper form{ 
    box-shadow: none !important;
}

.sign-footer .form-group{
    display: flex;
    justify-content: center;
    align-items: center;
}

button#login-btn.btn {
    width: 100px;
    padding: 15px;
    border: none;
    border-radius: 80px !important;
    background-color: var(--primary-blue);
    color: var(--white);
    font-size: medium;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 15px;
    margin-bottom: 20px;
}

button#login-btn:hover {
    /* background-color: var(--dark-blue); */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}



/* .login-links {
    margin-top: 25px;
    font-size: 0.95em;
    color: var(--text-color);
}

.login-links a {
    color: var(--primary-blue);
    transition: color 0.3s ease;
    font-weight: 500;
}

.login-links a:hover {
    color: var(--dark-blue);
    text-decoration: underline;
} */

/* ===== Desktop only ===== */
@media (min-width: 769px) {
    section#sign-wrapper > div#sign-wrapper > div#sign-wrapper {
        width: 420px !important;
    }

    .brand img {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    section#sign-wrapper,
    section#sign-wrapper *{
        box-sizing: border-box;
        width: auto;
        height: auto;
    }
}