﻿html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;   
  overflow-y: auto;     
}

.bg {
    min-height: 100vh;
    background-color: black;
    overflow: hidden;
}

.l-bg {
    position: absolute;
    left: 0;
    min-height: 100vh;
    min-width: 50%;
    opacity: 1;
    padding: 0;
}

.r-bg {
    position: absolute;
    right: 0;
    width: 50%;
    height: 100vh;
}

.login-bg-window {
    min-width: 50%;
    max-width: 50%;
    margin: 0 0 0 auto;
    min-height: 100vh;
    position: relative;
    background-color: rgba(255, 255, 255, 0.95);
}

.login-container {
    max-width: 480px;
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 50px;  
    transform: translate(-50%, -50%);
    border-radius: 9px;
    border: none;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.login .logo {
    display: block;
    margin: 20px auto 10px;
    width: 250px;
}

.login .btn {
    background-color: #D3BB81;
    margin-bottom: 15px;
}

.login h2 {
    font-weight: 400;
    text-align: center;
}

.login p {
    padding: 10px 0;
    font-size: var(--clamp24);
    font-weight: 400;
    text-align: center;
}

.login a {
    font-weight: 500;
    text-decoration: none;
    color: #569AF4;
}

.login {
    font-size: var(--clamp18);
}

::-ms-reveal {
    display: none;
}

.password-box {
    position: relative;
    width: 100%;
}

.password-box span {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

#password, #new-password, #confirm-password {
    padding-right: 40px;
}
.custom-border {
  border-bottom: 3px solid #B3904E;
}
.error-message {
    font-size: var(--clamp14);
    margin-top: 5px;
    color: red;
}



@media (max-width: 768px) {
    .bg {
        min-height: auto;
        height: auto;
        background-color: none;
        overflow: hidden;
    }

    .l-bg {
        position: relative;
        width: 100%;
        min-width: 100%;
        min-height: 0; 
    }

    .r-bg {
        position: relative;
        width: 0;
        min-width: 0;
        height: 0;
    }

    .login-bg-window {
        position: relative;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: auto;
        min-height: auto;
        margin: 0 auto;
        border-radius: 0; 
    }

    .login-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        max-width: 100%;
        width: 100%;
        padding: 20px;
        box-shadow: none;
        border-radius: 0;
        
    }
    .login{
        margin: 20px;
    }

    .login .logo {
        width: 180px;
    }

    .login p {
        font-size: 16px;
    }
}

/* Remove blue background from autofill */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px white inset !important; /* sets background to white */
  -webkit-text-fill-color: #000 !important; /* text color */
  transition: background-color 5000s ease-in-out 0s; /* prevent flash */
}

/* If you want to match with your design (example gray background) */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #f9f9f9 inset !important;
  -webkit-text-fill-color: #333 !important;
}

/* Firefox */
input:-moz-autofill {
  box-shadow: 0 0 0 1000px white inset !important;
  -moz-text-fill-color: #000 !important;
}

textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus,
.uneditable-input:focus {   
  box-shadow: none;
  outline: 0 none;
}

.form-control:focus{
    border-color: #212529;
}