/*TEXT INPUT*/
 .text-input{
    position: relative;
    width: 100%;
    margin-top: 1rem;
    background-color: transparent;
    border-radius: 12px;
}

.text-input input{
    width: 100%;
    height: 58px;
    padding: 1.5rem 1.1rem 0.5rem 1.1rem;
    font-size: 1rem;
    background-color: var(--surface);
    font-family: Roboto-Regular;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-input input + div{ /*BORDER*/
    display: none;
}

.text-input input:placeholder-shown + div + span{ /*PLACEHOLDER*/
    position: absolute;
    left: 1.2rem;
    top: 1.2rem;
    font-size: 0.95rem;
    font-family: Montserrat-Medium;
    color:var(--unfocused);
    transition: 0.2s ease;
    user-select: none;
    pointer-events: none;
}

.error{ /*ERROR*/
    position: relative;
    margin: 5px 10px;
    width: calc(100% - 20px);
    height: auto;
    color:var(--error-text);
    font-family: Montserrat-Medium;
    font-size: 10pt;
    line-height: 15px;
    list-style-type: square;
}

.text-input input::placeholder{
    color:transparent;
}

.text-input input:focus{
    border-color: var(--focused);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.text-input input:focus + div + span,
.text-input input:not(:placeholder-shown) + div + span{
    top: 0.35rem;
    font-size: 0.75rem;
    color: var(--focused);
}

.text-input input[type="password"]{
    -webkit-text-security:disc;
}

/*CODE INPUT*/
.code-input{
    position: relative;
    width: 100%;
    margin-top: 1rem;
    background-color: transparent;
    border-radius: 12px;
}

.code-input input{
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: transparent;
    border:none;
    color:transparent;
    opacity: 0;
}

.code-input input:focus{
    outline: none;
}

.code-input input::placeholder{
    color:transparent;
}

.code-input input + div{
    display: grid;
    grid-template-columns: repeat(6, minmax(40px, 1fr));
    gap: 0.65rem;
    width: 100%;
    height: 68px;
}

.code-input input + div div{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    background-color: var(--surface);
    font-size: 1.25rem;
    font-family: Montserrat-Medium;
    color:var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.code-input input + div div.focused{
    border: 2px solid var(--focused);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.code-input .error{ /*ERROR*/
    position: relative;
    margin: 5px 10px;
    width: calc(100% - 20px);
    height: auto;
    color:var(--error-text);
    font-family: Montserrat-Medium;
    font-size: 10pt;
    line-height: 15px;
    list-style-type: square;
}

/*BUTTONS*/

input[type=button], input[type=button].primary{
    width: 100%;
    height: 58px;
    margin-top: 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color:var(--primary-text);
    border-radius: 14px;
    font-family: Roboto-Bold;
    font-size: 1rem;
    border:none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.25);
}

input[type=button]:disabled{
    background: var(--disabled);
    box-shadow: none;
    color:var(--disabled-text);
    cursor:not-allowed;
}

input[type=button]:hover:not(:disabled), input[type=button].primary:hover:not(:disabled){
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.35);
}

input[type=button].secondary{
    background: transparent;
    border: 1px solid var(--card-border-strong);
    color:var(--text-secondary);
    box-shadow: none;
}

input[type=button].secondary:hover{
    background: rgba(99, 102, 241, 0.08);
    color:var(--primary-text);
}

input[type=button].splitted-left,
input[type=button].splitted-right{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 0 1.5rem;
    height: 44px;
    border-radius: 999px;
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-right: 0.75rem;
}

input[type=button].splitted-left{
    border: 1px solid var(--card-border-strong);
    background: transparent;
    color: var(--text-secondary);
}

input[type=button].splitted-left:hover{
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-text);
}

input[type=button].splitted-right{
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--primary-text);
    border: none;
}

/*CHECKBOX*/

.checkbox-input{
    position: relative;
    width: 100%;
    margin-top: 1rem;
    color:var(--text-primary);
    font-family: Roboto-Bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.checkbox-input input{
    position: absolute;
    opacity: 0;
}

.checkbox-input span{
    flex: 1;
}

.checkbox-input input + span + div{
    position: relative;
    width: 80px;
    height: 42px;
    border-radius: 999px;
    background-color: var(--checkbox-notchecked-background);
    border: 1px solid var(--checkbox-notchecked);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.checkbox-input input:checked + span + div{
    background-color: var(--checkbox-checked-background);
    border-color: var(--checkbox-checked);
}

.checkbox-input input + span + div div{
    position: absolute;
    top: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--checkbox-notchecked);
    transition: transform 0.2s ease, background 0.2s ease;
}

.checkbox-input input:checked + span + div div{
    transform: translateX(36px);
    background-color: var(--checkbox-checked);
}

/*COMBOBOX*/
.combobox-input{
    position: relative;
    width: 100%;
    height: 60px;
    margin-top: 1rem;
    color:var(--text-primary);
    font-family: Roboto-Bold;
}

.combobox-input select{
    width: 100%;
    height: 100%;
    background-color: var(--surface);
    color:var(--text-secondary);
    border-radius: 12px;
    font-family: Roboto-Bold;
    font-size: 1rem;
    border: 1px solid var(--card-border);
    padding: 0 1rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23cbd5f5' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1rem) center;
}

.combobox-input option{
    background-color: var(--surface);
    border: none;
    color: var(--text-primary);
}

/* THEME TOGGLE */
.theme-toggle{
    display: flex;
    justify-content: flex-end;
    margin: 0 0 1rem 0;
}

.theme-toggle button{
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    background: var(--surface);
    border-radius: 999px;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    font-family: Montserrat-Medium;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle button:hover{
    background: var(--card-hover);
    border-color: var(--card-border-strong);
    transform: translateY(-1px);
}

.theme-toggle button .indicator{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-soft);
    font-size: 1rem;
}

.theme-toggle.theme-toggle--floating{
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    width: auto;
    margin: 0;
}

/*logo*/

div.logo{
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
}

/*TITLES*/
h1{
    text-align: center;
    font-family: Montserrat-ExtraBold;
    font-weight: unset;
    color:var(--primary-text);
    user-select: none;
}
h2{
    text-align: center;
    font-family: Montserrat-Bold;
    font-weight: unset;
    color:var(--secondary);
    user-select: none;
    margin-bottom: 40px;
}

h3{
    text-align: center;
    font-family: Montserrat-SemiBold;
    font-weight: unset;
    color:var(--primary-text);
    user-select: none;
}

h4{
    text-align: center;
    font-family: Montserrat-Regular;
    font-weight: unset;
    color:var(--primary-text);
    user-select: none;
}

h5{
    text-align: left;
    text-indent: 10px;
    font-family: Montserrat-Regular;
    font-weight: unset;
    color:var(--primary-text);
    user-select: none;
}

/*LABELS*/
a.support{
    position: relative;
    display: block;
    margin-left: 20px;
    margin-top: 10px;
    color:var(--secondary);
    font-family: Roboto-Medium;
    font-size: 10pt;
    text-decoration: none;
    user-select: none;
}
a.support:hover{
    text-decoration: underline;
}

a.alternative{
    position: relative;
    display: inline-block;
    margin-top: 10px;
    margin-left: 20px;
    color:var(--secondary);
    text-align: center;
    font-family: Roboto-Medium;
    font-size: 10pt;
    text-decoration: none;
    vertical-align: middle;
    user-select: none;
}

a.alternative:hover{
    text-decoration: underline;
}

p{
    margin: 30px 20px;
    font-family: Roboto-Regular;
    font-size: 10pt;
    color:var(--primary-text);
    user-select: none;
}

p a{
    color:var(--secondary);
    font-family: Roboto-Medium;
    text-decoration: none;
}

p a:hover{
    color:var(--secondary);
    font-family: Roboto-Medium;
    text-decoration: underline;
}

@media only screen and (max-width: 600px) { 
    .text-input{
        width: calc(100% - 10px);
        margin: 20px 5px;
    }
    .text-input input + div{ /*BORDER*/
        height: 50px;
    }
    .text-input input:focus + div{ /*FOCUSED BORDER*/
        height: calc(50px - 3px);
    }

    .text-input input{
        margin: 10px 10px;
    }

    input[type=button], input[type=button].primary{
        width: calc(100% - 10px);
        margin: 5px 5px;
        height: 50px;
    }
    input[type=button], input[type=button].secondary{
        width: calc(100% - 10px);
        margin: 5px 5px;
        height: 50px;
    }

    .text-input input:placeholder-shown + div + span{ /*PLACEHOLDER*/
        margin:10px 10px;
    }

    .checkbox-input{
        height: auto;
        width: calc(100% - 10px);
        margin: 5px 5px;
    }
    
    .checkbox-input input + span{
        position: absolute;
        left: 10px;
        top: 0px;
        line-height: 30px;
        font-size: 10pt;
        pointer-events: none;
    }

    .checkbox-input input + span + div{
        position: absolute;
        right: 0px;
        top: 0px;
        width: 60px;
        height: 30px;
        border-radius: 5px;
        pointer-events: none;
    }
    
    .checkbox-input input + span + div div{
        position: absolute;
        top: 5px;
        width: 20px;
        height: 20px;
    }
    
    .checkbox-input input:not(:checked) + span + div div{
        right: 35px;
    }
    .checkbox-input input:checked + span + div div{
        right: 5px;
    }

    /*COMBOBOX*/
    .combobox-input{
        position: relative;
        height: 40px;
        width: calc(100% - 10px);
        margin: 20px 5px;
        background-color: transparent;
        color:var(--primary-text);
        border-radius: 5px;
        font-family: Roboto-Bold;
        font-size: 12pt;
        transition: 0.2s;
        border:none;
    }
}

/* width */
::-webkit-scrollbar {
    width: 5px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.11);
    border-radius: 5px;
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #555;
  }