html {
    height: 100%;
}

body {
    margin: 0;
    height: 100%;
    font-family: "Open Sans", sans-serif;
    font-size: 1rem;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background-image: url(/assets/ensemble-hex-grid.png);
    background-color: var(--primary-colour);
    background-size: cover;
}

.version {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background-color: #c0392b;
    padding: .4rem;
    color: #ffffff;
    font-weight: bold;
}

.failure {
    background-color: #c0392b;
    padding: 1rem;
    color: #ffffff;
    font-weight: 400;
    margin-bottom: 1em;
}

.panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.panel form {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: 4px;
    background-color: var(--background-colour);
    box-shadow: 1px 1px 10px 0px;
}

.logo {
    height: 120px;
    background-image: url(/assets/logo.png);
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

@media (prefers-color-scheme: dark) {
    .logo {
        background-image: url(/assets/logo-darkbg.png);
    }
}

h1 {
    font-size: 1rem;
}

label, h1 {
    color: var(--text-colour);
}

input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--primary-colour);
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
}
input::placeholder {
    color: rgba(24, 49, 90, 0.70);
    font-weight: 400;
}

input:focus-visible {
    border: 1px solid var(--primary-colour);
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
}

.divider {
    margin-top: 1rem;
    height: 1px;
    background-color: gray;
    margin-bottom: 1rem;
}

.other-methods {
    color: darkgrey;
    display: grid;
    gap: 8px;
    font-size: 12px;
}

.btn-wrapper {
    filter: drop-shadow(3px 3px 0px rgba(0,0,0,1));
    transition: all .1s linear;
    width: fit-content;
}

.btn-wrapper:hover, .btn-wrapper:focus-within {
    filter: drop-shadow(5px 5px 0px var(--secondary-colour));
}

.btn-wrapper button{
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    padding: .5rem 2rem;
    font-size: 1.125rem;
    background-color: var(--primary-colour);
    color: #ffffff;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
    pointer-events: auto;
    font-weight: 700;
    clip-path: polygon(5% 0, 100% 0, 100% 65%, 95% 100%, 0 100%, 0 35%);
    transition: all .1s linear;

}

.link-wrapper {
    filter: drop-shadow(1px 1px 0px rgba(0,0,0,1)) drop-shadow(-1px -1px 0px rgba(0,0,0,1));
    transition: all .1s linear;
    width: fit-content;
}

.link-wrapper a {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    gap: 8px;
    padding: .5rem 2rem;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    clip-path: polygon(5% 0, 100% 0, 100% 65%, 95% 100%, 0 100%, 0 35%);
    transition: all .1s linear;
    color: var(--primary-colour);
    background-color: #ffffff;
}
.link-wrapper img {
    height: 20px;
}

.link-wrapper:hover, .link-wrapper:focus-within {
    filter: drop-shadow(3px 3px 0px var(--secondary-colour)) drop-shadow(-1px -1px 0px var(--secondary-colour));
}

.link-wrapper a:hover {
    margin-left: -2px;
    margin-top: -2px;
}

.btn-wrapper button:hover, .btn-wrapper button:focus {
    margin-left: -2px;
    margin-top: -2px;
}

.not-you {
    text-align: center;
}

/*Footer*/

.branding {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    align-items: center;
    color: white;
}

.branding img {
    height: 40px;
}

.toggle-checkbox {
    display: none;
}

.footer-collapsible {
    width: 100%;
    background: #f1f1f1;
    color: var(--primary-colour);
    text-align: left;
    padding-top: 10px;
}

.footer-content {
    display: block;
    p {
        margin-left: 10px;
    }
    li {
        padding-right: 100px;
    }
}

.toggle-checkbox:checked + .footer-toggle + .footer-content {
    display: none;
}

.footer-toggle {
    cursor: pointer;
    color: #007bff;
    display: block;
    margin-left: 10px;
}
