:root {
    color: #1a1a1a;
    background: #f3f3f3;
    font-family: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

body {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 0;
    min-height: 100vh;
    padding: 24px;
}

main {
    border-top: 5px solid #ffcc00;
    max-width: 470px;
    padding: 44px 40px 40px;
    position: relative;
    width: 100%;
}

main::before {
    background: #fffdf8;
    box-shadow: 0 18px 50px rgba(26, 26, 26, 0.16);
    content: "";
    inset: 0;
    position: absolute;
    z-index: -1;
}

.wordmark {
    color: #1a1a1a;
    font-family: "Trebuchet MS", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin: 0 0 30px;
}

h1 {
    font-size: 35px;
    font-weight: 400;
    line-height: 1.08;
    margin: 0 0 12px;
}

.intro {
    color: #4d4d4d;
    font-family: "Trebuchet MS", sans-serif;
    line-height: 1.5;
    margin: 0 0 30px;
}

label {
    display: block;
    font-family: "Trebuchet MS", sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

input,
button {
    border-radius: 0;
    font: inherit;
    width: 100%;
}

input {
    background: #fff;
    border: 1px solid #aeb8ba;
    color: #1a1a1a;
    font-family: "Trebuchet MS", sans-serif;
    font-size: 16px;
    min-height: 48px;
    padding: 12px;
}

input:focus {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.65);
    outline: none;
}

button {
    background: #ffcc00;
    border: 0;
    color: #1a1a1a;
    cursor: pointer;
    font-family: "Trebuchet MS", sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-top: 20px;
    min-height: 50px;
}

button:hover:not(:disabled),
button:focus-visible:not(:disabled) {
    background: #e6b800;
}

button:focus-visible {
    outline: 3px solid #1a1a1a;
    outline-offset: 3px;
}

button:disabled {
    cursor: wait;
    opacity: 0.7;
}

#sso-login {
    background: #0078d4;
    color: #fff;
}

#sso-login:hover:not(:disabled),
#sso-login:focus-visible:not(:disabled) {
    background: #106ebe;
}

[role="alert"] {
    color: #a42323;
    font-family: "Trebuchet MS", sans-serif;
    margin: 16px 0 0;
    min-height: 1.5em;
}

.success {
    color: #0b5c46;
    font-family: "Trebuchet MS", sans-serif;
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
}

.apps-list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.apps-prompt {
    color: #4d4d4d;
    font-family: "Trebuchet MS", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 20px;
}

.app-button {
    background: #fff;
    border: 1px solid #aeb8ba;
    border-left: 5px solid #ffcc00;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.2;
    margin-top: 0;
    min-height: 64px;
    padding: 13px 52px 13px 16px;
    position: relative;
    text-align: left;
}

.app-button::after {
    border-right: 2px solid currentcolor;
    border-top: 2px solid currentcolor;
    content: "";
    height: 10px;
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
}

.app-button:hover:not(:disabled),
.app-button:focus-visible:not(:disabled) {
    background: #fff7cf;
    border-color: #1a1a1a;
}

.logout-area {
    border-top: 1px solid #aeb8ba;
    margin-top: 32px;
    padding-top: 20px;
}

#logout {
    background: #fff;
    border: 1px solid #66787d;
    color: #34464b;
    margin-top: 0;
}

#logout:hover:not(:disabled),
#logout:focus-visible:not(:disabled) {
    background: #e8eeef;
    border-color: #34464b;
}

[hidden] {
    display: none;
}

@keyframes arrive {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    main {
        padding: 36px 28px 32px;
    }

    h1 {
        font-size: 30px;
    }
}
