/* Colour scheme */
:root {
    --background: 220, 5.5%, 9.5%;
    --foreground: 220, 2%, 97%;
    --primary: 220, 2%, 96%;
    --primary-hover: 220, 2%, 96%, 0.9;
    --primary-foreground: 220, 4%, 10%;
    --primary-red: 0, 100%, 67.8%;
    --primary-red-hover: 0, 100%, 67.8%, 0.9;
    --muted-foreground: 220, 4%, 67%;
    --input: 0, 0%, 98%;
    --button: 339, 100%, 48%, 0.12;
    --consent: 0, 0%, 13%;
    --consent-foreground: 0, 0%, 17%;
    --black: 0, 0%, 0%;
}

/* Background */
body {
    background-color: hsl(var(--background)) !important;
    color: hsl(var(--background)) !important;
    overflow: hidden !important;
}

/* 
First page
*/

/* Login box */
[id*="first-factor-stage"] {
    margin-top: -40px !important;
}

/* Sign in button */
[id*="sign-in-button"] {
    font-family: Inter,InterVariable,sans-serif !important;
    font-weight: 500 !important;
    background-color: hsl(var(--primary)) !important;
    color: hsl(var(--primary-foreground)) !important;
    text-transform: none !important;
    border-radius: 10px !important;
}

/* Sign in button hover */
[id*="sign-in-button"]:hover {
    background-color: hsl(var(--primary-hover)) !important;
}

/* Username field */
[id*="username-textfield"] {
    font-family: Inter,InterVariable,sans-serif !important;
    color: hsl(var(--primary)) !important;
}

/* Username label */
[id*="username-textfield-label"] {
    color: hsl(var(--muted-foreground)) !important;
}

/* Password field */
[id*="password-textfield"] {
    font-family: Inter,InterVariable,sans-serif !important;
    color: hsl(var(--primary)) !important;
}

/* Password label */
[id*="password-textfield-label"] {
    color: hsl(var(--muted-foreground)) !important;
}

/* Hide user icon */
svg[id*="UserSvg"] {
    transform: scale(0.0) !important;
}

/* 
Below CSS classes will likely change on new builds 
*/

/* Hide loading text; Class includes svg */
[class*="authelia-1n5khr6"] {
    color: hsl(var(--background)) !important;
}

/* Authelia logo */
[class*="authelia-1ijkfjr"] {
    background: url("https://cdn.vstm.app/static/logo.png") no-repeat !important;
    background-position: center top !important;
    background-size: 444px !important;
}

/* Sign in text below Authelia logo */
[class*="authelia-elr2b6"] {
    color: hsl(var(--muted-foreground)) !important;
    font-size: .875rem !important;
    line-height: 1.25rem !important;
    font-family: Inter,InterVariable,sans-serif !important;
}

/* Authelia footer */
[class*="authelia-3u5y1c"] {
    font-size: 0.79rem !important;
    font-weight: 400 !important;
    font-family: Inter,InterVariable,sans-serif !important;
    color: hsl(var(--foreground)) !important;
    text-decoration-line: underline !important;
    text-underline-offset: 4px !important;
    opacity: .7 !important;
}

/* Input field radius */
[class*="authelia-kdbx36"] {
    border-radius: 10px !important;
}

/* Input field hover */
[class*="authelia-ik1sxq"]:hover .MuiOutlinedInput-notchedOutline {
    border-width: 2px !important;
}

/* 
Second page
*/

/* Hide timer icon */
circle {
    display: none !important;
}

/* Page box text colour */
#\32 fa-container {
    color: transparent !important;
    margin-bottom: -60px !important;
    padding-bottom: 200px !important;
}

/* Two factor box */
[id*="second-factor-stage"] {
    margin-top: -76px !important;
}

/* Input field box */
[id*="otp-input"] {
    background-color: hsl(var(--input)) !important;
    padding: 12px 10px 12px 10px !important;
    border: 2px solid hsl(var(--input)) !important;
    border-radius: 10px !important;
    filter: invert(90%) hue-rotate(170deg) !important;
    margin-bottom: -5px !important;
}

/* Logout button */
[id*="logout-button"] {
    --variant-textBg: hsl(var(--button)) !important;
    text-transform: none !important;
    display: none !important;
}

/* Methods button */
[id*="methods-button"] {
    --variant-textBg: hsl(var(--button)) !important;
    text-transform: none !important;
    display: none !important;
}

[id*="one-time-password-method"] {
    margin-top: -60px !important;
}

/* 
Below CSS classes will likely change on new builds 
*/

/* Hide default border */
[class*="authelia-0"] {
    border: 0px !important;
}

/* Hide top text */
[class*="authelia-1rl0qlz"] {
    display: none !important;
}

/* Hide bottom text */
[class*="authelia-1fffewc"] {
    display: none !important;
}

/* Page box */
[class*="authelia-16mdzo2"] {
    background-color: hsl(var(--background)) !important;
    color: hsl(var(--background)) !important;
    border-radius: 20px !important;
    border-width: 2px !important;
    border-color: hsl(var(--background)) !important;
    padding-top: 20px !important;
    border-style: solid !important;
    margin-bottom: -115px !important;
}

/* 
Third page
*/

/* Authenticated box */
[id*="authenticated-stage"] {
    margin-top: 0px !important;
    background-color: hsl(var(--background)) !important;
}

/* Hide green icon */
svg[class*="success-icon"] {
    transform: scale(0.0) !important;
}

/* 
Fourth page
*/

/* Hide blue icon */
svg[class*="information-icon"] {
    transform: scale(0.0) !important;
}

/* 
Fifth page
*/

/* Consent box */
[id*="consent-stage"] {
    margin-top: 3px !important;
}

/* Accept button */
[id*="accept-button"] {
    font-family: Inter,InterVariable,sans-serif !important;
    font-weight: 500 !important;
    background-color: hsl(var(--primary)) !important;
    color: hsl(var(--primary-foreground)) !important;
    text-transform: none !important;
    border-radius: 10px !important;
    margin-left: 0px !important;
}

/* Accept button hover */
[id*="accept-button"]:hover {
    background-color: hsl(var(--primary-hover)) !important;
}

/* Deny button */
[id*="deny-button"] {
    font-family: Inter,InterVariable,sans-serif !important;
    font-weight: 500 !important;
    background-color: hsl(var(--primary-red)) !important;
    color: hsl(var(--primary-foreground)) !important;
    text-transform: none !important;
    border-radius: 10px !important;
    margin-left: 0px !important;
}

/* Deny button hover */
[id*="deny-button"]:hover {
    background-color: hsl(var(--primary-red-hover)) !important;
}

/* Scope: OpenID */
[id*="scope-openid"] {
    color: hsl(var(--primary)) !important;
}

/* Scope: E-mail */
[id*="scope-email"] {
    color: hsl(var(--primary)) !important;
}

/* Scope: Profile */
[id*="scope-profile"] {
    color: hsl(var(--primary)) !important;
}

/* 
Below CSS classes will likely change on new builds 
*/

/* Consent page box */
[class*="authelia-1wduhak"] {
    background-color: hsl(var(--consent)) !important;
    border: 1px solid hsl(var(--consent-foreground)) !important;
    border-radius: 10px !important
}

/* Consent page font colour */
[class*="authelia-5l6nrt"] {
    color: hsl(var(--primary)) !important;
}

/* 
Below CSS classes will likely change on new builds

Sixth page
*/

/* Sidebar background */
[class*="authelia-tv67xs"] {
    background-color: hsl(var(--black)) !important;
}