@font-face {
    font-family: Formular;
    src: url(../other/Formular-Regular.otf);
}

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    min-height: 100%;
    background-color: #f4f4f4;
    color: #1d1d1d;
    font-family: Formular;
}

form {
	display: none !important;
}

#logo {
    max-width: 150px;
}

img {
    display: block;
    width: 100%;
}

fieldset {
    position: relative;
    display: none;
    grid-template-rows: auto auto;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: 80%;
    max-width: 600px;
    padding: 0;
    border: none;
    margin-top: 80px;
    z-index: 10;
    opacity: 0;
    transition: opacity .5s ease;
}

fieldset.show {
    opacity: 1;
}

label {
    margin-right: 10px;
    user-select: none;
    flex-shrink: 0;
    font-size: 18px;
}

input[type='text'] {
    flex-grow: 1;
    height: 40px;
    min-width: 100px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    outline: none;
    background-color: #fff;
    box-sizing: border-box;
}

input[value='Failed to get access token.'] {
    color: red;
}

button {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border: 1px solid #ccc;
    border-left: none;
    padding: 8px;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    background-color: #fff;
    cursor: pointer;
}

button > svg {
    fill: #1d1d1d;
    transition: fill .35s ease;
}

[data-tooltip] {
    position: relative;
    display: inline-block;
}

[data-tooltip]::before {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -12px);
    z-index: 1000;
    pointer-events: none;
    user-select: none;
    opacity: 0;
    transition: opacity .35s ease;
}

[data-tooltip].show::before {
    opacity: 1;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    background: #1d1d1d;
    color: #fff;
    padding: 8px 12px;
    white-space: nowrap;
    bottom: 100%;
    border-radius: 3px;
    font-family: Formular;
}

[data-tooltip].tooltip-multiline::before {
    width: 100vw;
    max-width: 240px;
    white-space: normal;
}

#error {
    display: none;
    height: 40px;
    padding: 0 1rem;
    font-size: 18px;
    margin-top: 80px;
    margin-bottom: 0;
    color: #bd4545;
    text-align: center;
}

#error.show {
    display: block;
}

#error-message {
    margin-left: 2px;
}

#loader {
    width: 110px;
    height: 40px;
    font-size: 22px;
    margin-top: 80px;
}

/*
 *	Loading dots animation.
 * 
 *  @link: https://codepen.io/thetallweeks/pen/yybGra
 */
#loader:after {
    content: "\2026"; 
    display: inline-block;
    width: 0px;
    overflow: hidden;
    vertical-align: bottom;
    animation: ellipsis steps(4, end) 1000ms infinite;
}

#loader.hide {
    display: none;
}

@keyframes ellipsis {
    to {
        width: 1em;
    }
}

#description {
    grid-column: 2/4;
    margin: 20px 0 0 0;
    padding: 0;
    font-size: 14px;
    color: #666;
}

#description > a {
    color: inherit;
    transition: opacity .2s ease;
}

#description > a:hover {
    opacity: 0.8;
}

.secure-warn {
    color: #bd4545;
}