#loginBox, 
#signUpBox {
    position: absolute !important;
    top: 100%;          /* Precis under knappen */
    right: 0;           /* Högerställd mot knappen */
    width: 320px;       /* Fast bredd på desktop behålls i px för struktur */
    box-sizing: border-box;
    z-index: 1000;
    margin-top: 0.625rem;   /* 10px / 16 = 0.625rem luft under knappen */
}

/* min-height och max-width konverteras proportionerligt. border-radius och skuggor stannar i px. */
.auth-container,
.auth-container2 {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
    max-width: 340px;
    width: 100%;
    min-height: 33.75rem; /* 540px / 16 = 33.75rem */
}

.auth-container h1,
.auth-container2 h1 {
    font-weight: bold;
    margin: 0;
    color: white;
}

.auth-container h2,
.auth-container2 h2 {
    text-align: center;
}

/* 14px / 16 = 0.875rem, 20px / 16 = 1.25rem, 30px / 16 = 1.875rem. letter-spacing behålls i px. */
.auth-container p,
.auth-container2 p {
    font-size: 0.875rem;
    font-weight: 100;
    line-height: 1.25rem;
    letter-spacing: 0.5px;
    margin: 1.25rem 0 1.875rem;
    color: white;
    width: 100%;
}

/* 12px / 16 = 0.75rem */
.auth-container span,
.auth-container2 span {
    font-size: 0.75rem;
}

/* 15px / 16 = 0.9375rem */
.auth-container a,
.auth-container2 a {
    color: var(--link-color);
    text-decoration: none;
    margin: 0.9375rem 0;
    font-family: 'Poppins';
}

/* KNAPPAR: font-size i rem, men padding i em så att knappens luftighet 
   skalas helt perfekt om man ändrar textstorleken inuti den! */
.auth-container button,
.auth-container2 button {
    border-radius: 20px;
    border: 1px solid #FF4B2B;
    background-color: #FF4B2B;
    color: #FFFFFF;
    font-size: 0.75rem; /* 12px / 16 = 0.75rem */
    font-weight: bold;
    
    /* 12px padding / 12px font = 1em | 45px padding / 12px font = 3.75em */
    padding: 1em 3.75em; 
    
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
}

.auth-container button:active,
.auth-container2 button:active {
    transform: scale(0.95);
}

.auth-container button:focus,
.auth-container2 button:focus {
    outline: none;
}

/* Formulär */
.auth-container form,
.auth-container2 form,
.auth-container .form2,
.auth-container2 .form2 {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

/* 20px / 16 = 1.25rem */
.auth-container form,
.auth-container2 form {
    padding: 0 1.25rem;
}

.auth-container .form2,
.auth-container2 .form2 {
    padding: 0 1.25rem;
}

/* 12px / 16 = 0.75rem, 15px / 16 = 0.9375rem, 8px / 16 = 0.5rem */
.auth-container input,
.auth-container2 input {
    background-color: #eee;
    border: none;
    padding: 0.75rem 0.9375rem;
    margin: 0.5rem 0;
    width: 100%;
}

/* 400px / 16 = 25rem */
.auth-container2 {
    min-height: 28rem;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in-container,
.sign-in-container2 {
    left: 0;
    width: 50%;
    z-index: 2;
    color: black;
}

.sign-in-container h1,
.sign-in-container p,
.sign-in-container2 h1,
.sign-in-container2 p {
    color: black;
}

/* 150px / 16 = 9.375rem. border och border-radius stannar i px. */
.sign-in-container input,
.sign-in-container2 input {
    min-width: 9.375rem;
    width: 100%;
    background-color: white;
    border: solid 1px #cccccc;
    border-radius: 4px;
}

.sign-in-container2 {
    width: 100%;
}

/* 10px / 16 = 0.625rem */
.social-container {
    margin: 0.625rem 0 0 0;
}

/* 10px / 16 = 0.625rem, 25px / 16 = 1.5625rem */
.social-container a {
    display: inline-flex;
    align-items: center;
    margin: 0 0.625rem;
    height: 1.5625rem;
    width: 1.5625rem;
}

.signUpForm {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important; 
    width: 100% !important;          
    box-sizing: border-box !important;
}

/* 12px / 16 = 0.75rem, 15px / 16 = 0.9375rem, 6px / 16 = 0.375rem */
.signUpForm input {
    width: 100% !important;          
    max-width: 100% !important;
    box-sizing: border-box !important; 
    background-color: white;
    border: solid 1px #cccccc;
    border-radius: 4px;
    padding: 0.75rem 0.9375rem;
    margin: 0.375rem 0;                
}

/* 10px / 16 = 0.625rem */
.signUpForm > div {
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
    margin-top: 0.625rem;
}

/* 14px / 16 = 0.875rem, 10px / 16 = 0.625rem */
.login-sep {
    position: relative;
    margin-bottom: 0.875rem !important;
    margin-top: 0.625rem !important;
}

/* 10px / 16 = 0.625rem */
.login-sep span {
    background: #fff;
    z-index: 1;
    padding: 0 0.625rem;
    position: relative;
}

/* Linjens tjocklek på 1px behålls i px */
.login-sep::after {
    content: '';
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    height: 1px;
    background: black;
    display: block;
}

/* ÄNDRAT: transform rättat till transition för mjuk animation */
/* 35px / 16 = 2.1875rem */
.sib2 {
    margin-top: 2.1875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

/* ÄNDRAT: transform rättat till transition */
/* 15px / 16 = 0.9375rem */
.sib3 {
    margin-top: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.sib3:hover, 
.sib2:hover {
    box-shadow: 0 5px 10px rgba(71, 71, 71, .4);
    background: red;
}

/* Knappar och kryss: storlek och font-size i rem för perfekt textskalning.
   border-radius och ramar i fasta px. */
/* 48px / 16 = 3rem, 20px / 16 = 1.25rem, 14px / 16 = 0.875rem, 8px / 16 = 0.5rem */
.closeForm {
    display: flex;
    align-items: center;
    justify-content: center;
    right: 0;
    top: 0;
    color: white;
    border-radius: 0 4px 0 50px;
    width: 3rem;
    height: 3rem;
    background-color: #ff4b2b;
    font-size: 1.25rem;
    font-weight: 600;
    z-index: 111;
    position: absolute;
    padding-left: 0.875rem;
    padding-bottom: 0.5rem;
    border: solid 1px #ff4b2b;
    cursor: pointer;
    font-family: 'Poppins';
}

.submitter {
    opacity: 1;   
}

.closeForm:hover,
.closeForm2:hover {
    background-color: red;
}

.red {
    border: solid 2px red !important;
}

/* 35px / 16 = 2.1875rem */
.social-container .social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1875rem;
    height: 2.1875rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.social-container .social img {
    width: 100%;
    display: block;
}

/* -3px / 16 = -0.1875rem (Skalar nu snyggt vid systemzoom) */
.social-container .social:hover {
    transform: translateY(-0.1875rem);
}

/* 15px / 16 = 0.9375rem, 5px / 16 = 0.3125rem */
.social-container {
    margin-top: 0.9375rem;
    margin-bottom: 0.3125rem;
}

.custom-checkbox.missingData-label .checkmark {
    border: 1px solid red;
}

/* Struktur för länkarna under knapparna */
.auth-navigation-links {
    text-transform: none; 
    padding-top: 1.25rem; /* 20px / 16 = 1.25rem */
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* 8px / 16 = 0.5rem */
}

/* Beskrivande text i OTP-vyn */
.otp-desc {
    font-size: 0.8125rem !important; /* 13px */
    color: var(--text-muted, #636e72);
    text-align: center;
    margin: 0.3125rem 0 0.9375rem 0 !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
}

/* Grid-systemet för att hålla rutorna helt jämna inuti din 320px breda box */
.otp-inputs-wrapper {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.375rem; /* 6px emellan rutorna */
    width: 100%;
    box-sizing: border-box;
    margin: 0.625rem 0; /* 10px */
}

/* De enskilda sifferboxarna */
.otp-inputs-wrapper input {
    min-width: 0 !important; /* <--- LÄGG TILL DENNA RAD! Tvingar bort 150px-spärren */
    width: 100% !important;
    height: 2.75rem !important; 
    text-align: center !important;
    font-size: 1.25rem !important; 
    font-weight: 600 !important;
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease;
}
/* Fokus och ifyllt läge för sifferboxarna */
.otp-inputs-wrapper input:focus {
    outline: none !important;
    border-color: #007bff !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15) !important;
}

.otp-inputs-wrapper input:not(:placeholder-shown) {
    background-color: #ffffff !important;
    border-color: #2d3436 !important;
}

#otp_email-value
{
    margin-bottom:30px;
}