#preLoginModal {
    display:none;
    height: 100vh;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.45);
    backdrop-filter:blur(4px);
    z-index:100001;
    align-items:center;
    justify-content:center;
}
#preLoginModal[style*="display: block"] {
  display: flex !important;
}

.preLoginModalContent {
    width: 100%;
    max-width: 1100px;
    height: 600px;
    max-width: 95%;
    max-height: 95%;
    margin: 0 auto;
    position: relative;
}
#preLoginCard {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180.7deg, rgba(11, 47, 159, 1) -28.8%, rgba(199, 255, 216, 1) 95.4%);
    box-shadow: 0 12px 40px rgba(2, 6, 23, 0.35);
    transition: transform 0.42s cubic-bezier(.2, .9, .2, 1), opacity 0.25s ease;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
}
#closePreLogin{
    position:absolute;
    top:16px;
    right:18px;
    background:none;
    border:none;
    font-size:22px;
    color:#fff;
    cursor:pointer;
    z-index:10;
}
#preLoginModal .preLoginCardContent {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 48px;
    padding: 32px;
}
.prelogin-role:hover{ 
    transform: translateY(-6px); 
    transition: transform .18s ease; 
}
#preLoginCard.flipped{
    transform: rotateY(180deg) translateZ(0) scale(0.98);
    opacity: 0;
}
#preLoginModal .prelogin-role {
    flex: 1;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: transform .25s;
}
#preLoginModal .prelogin-role .imageDiv {
    width: 128px;
    height: 128px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(2, 6, 23, 0.12);
}
#preLoginModal .prelogin-role .imageDiv img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#preLoginModal .prelogin-role .prelogin-select-btn {
    margin-top: 18px;
    padding: 14px 30px;
    border-radius: 24px;
    background: #5b43f7;
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(34, 34, 34, 0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    width: 100vw;
    height: 100vh;
}
.modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(44, 44, 44, 0.18);
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
    animation: modalFadeIn 0.3s;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    outline: 0;
}

#authModal .modal-content {
    max-height: 93vh;
    overflow-y: auto;
    height: fit-content;
    max-width: 700px;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}
.modal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    margin: 0 0 24px 0;
    background: #f3f4f6;
    overflow: hidden;
    border-top-right-radius: 13px;
    border-top-left-radius: 13px;
}
.tab-btn {
    flex: 1;
    background: #f3f3fa;
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 10px 0;
    font-weight: 600;
    color: rgb(54, 198, 245);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
#authModal .modal-tabs button {
    font-size: 20px;
    padding: 10px !important;
    border-radius: 0px !important;
}
.modal-body {
    margin: 25px;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.password-field-wrapper {
    position: relative;
    display: flex;
}
.password-field-wrapper .password-input {
    flex: 1;
}
.password-field-wrapper .toggle-password {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #888;
    cursor: pointer;
    padding: 0 4px;
}
.back-btn {
    background-color: #36C6F5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    padding: 9px 20px;
    cursor: pointer;
    margin-left: 8px;
}
.act-btn {
    z-index: 1000;
    padding: 09px 20px;
    border: none;
    background-color: #36C6F5;
    color: #fff;
    border-radius: 13px;
    font-weight: 600;
    padding: 9px 20px;
    cursor: pointer;
    width: fit-content;
    margin: auto;
}
.auth-form button, #loginForm button, #signupUnifiedForm button, .modal-overlay button {
    padding: 10px 16px !important;
    border-radius: 13px !important;
}
#forgotPasswordLink.forgot-link {
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 8px;
    margin-top: 4px;
    display: inline-block;
    cursor: pointer;
    font-weight: 500;
    color: rgb(54, 198, 245);
    float: unset;
}
#loginForm .signInButton {
    cursor: pointer;
    color: rgb(255, 255, 255);
    width: fit-content;
    display: block;
    border: unset;
    background: rgb(54, 198, 245);
    margin: 12px auto 0px;
    border-radius: 8px !important;
    padding: 10px 16px !important;
}
#signupUnifiedForm {
    gap: 0px;
}
.info-icon {
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: rgb(107, 114, 128);
}
.password-policy-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 0px;
    margin-top: 8px;
    font-size: 13px;
    color: rgb(51, 51, 51);
    width: 250px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 10px;
    z-index: 99999;
    background: rgb(255, 255, 255);
    border-width: 1px;
    border-style: solid;
    border-color: rgb(221, 221, 221);
    border-image: initial;
    border-radius: 8px;
    padding: 10px 14px;
}
.inner-header {
    height: 35px;
    width: -webkit-fill-available;
}
#authModal .header {
    text-align: center;
    margin-bottom: 0px;
    background: linear-gradient(60deg, rgb(84, 58, 183) 0%, rgb(0, 172, 193) 100%);
    flex: 1 1 0%;
    padding: 0px;
}
#authModal .section-waves{
    margin: 5px auto !important;
}
#authModal .tabs-content{
    border: 1px solid #ccc;
    border-radius: 13px;
}
#loginForm input[type='email'],#signupFieldsSection input,#signupOtpSection input{
    margin-bottom:16px;
    width:100%;
    box-sizing:border-box;
}
#loginForm .password-field-wrapper{
    margin-bottom:8px;
}
#signupOtpSection{
    display:none; 
    margin-top:10px;
}
#passwordSection{
    margin:16px 0px; 
    position:relative; 
    display:none;
}
#passwordSection input{
    width:100%;
    box-sizing:border-box;
 }
#confirmPasswordSection{
    margin-bottom:16px; 
    display:none;
}
#confirmPasswordSection input{
    width:100%;
    box-sizing:border-box;
}
#resetModal .modal-header h2{
    text-align:center; 
    width:100%;
}
#resetModal .modal-header h2 span{
    font-size:2rem; 
    color:#5b43f7;
}
#resetModal .modal-content >p{
    text-align:center; 
    color:#666; 
    margin-bottom:24px;
}
#resetForm .password-field-wrapper:first-of-type{
    position:relative;
}
#resetForm .password-field-wrapper{
    margin-bottom:16px;
}
.backToVerificationLink{
    text-align:center; 
    margin-top:16px;
}
#backToVerification{
    color:#5b43f7; 
    text-decoration:none; 
    font-size:15px;
}
.close-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    top: -10px;
    right: 5px;
    font-size: 35px;
}
.modal-header h2, .tab-btn, #forgotPasswordLink.forgot-link {
    color: #36C6F5;
}
.tab-btn.active {
    background: #36C6F5;
    color: #fff;
}

#userDropdown {
  display: none;
  position: absolute;
  top: 32px;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  padding: 16px 18px;
  min-width: 180px;
  z-index: 5;
}
#userDropdown button {
  background: none;
  border: none;
  color: #222;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
}
#userDropdown button i {
    min-width: 20px;
}
#userDropdown .fa-tachograph-digital{
    color: #36c6f5;
}
#userDropdown .fa-file-contract{
    color: #f9b115;
}
#userDropdown .openWebsiteIntegration{
    white-space: nowrap;
}
#userDropdown .openWebsiteIntegration .fa-globe{
    color: #2563eb;
}
.verify-btn{
  background-color:  #36C6F5;
  color: #fff;
  border-radius: 13px;
  font-weight: 600;
  padding: 9px 20px;
  cursor: pointer;
}