:root {
    --text-primary: #fafaf9;
    --text-secondary: #d6d8d1;
    --text-tertiary: #78716c;
    --text-link: #67e8f9;
    --accent-primary: #f47658;
    --accent-strong: #d85749;
    --accent-strong-50: rgba(216, 87, 73, 0.5);
    --bg-primary: #1c1917;
    --bg-secondary: #1a1a1a;
    --border-subtle: #57534e;
    --font-primary: "Inter", sans-serif;
    --font-mono: "Jetbrains Mono", "mono";
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    line-height: inherit;
    font-family: var(--font-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

h1 {
    font-size: 1.75rem;
    line-height: 1;
    font-family: var(--font-mono);
    margin: 0 0 0.5em;
    font-weight: normal;
    color: var(--text-primary);
}

a {
    color: var(--text-link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.wrapper {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    height: 100%;
    font-family: var(--font-primary);
}

.branding {
    color: var(--accent-primary);
    font-size: 22px;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 1em;
    border-bottom: 1px solid var(--accent-strong-50);
}

.login {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    padding: 3rem;
    width: 100%;
    max-width: 540px;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    position: relative;
}

p {
    margin: 0;
}

.login button,
.login .button {
    width: 100%;
    background: rgba(250, 250, 249, 0.1);
    border: 1px solid var(--border-subtle);
    height: 2.25em;
    margin-bottom: 0.5em;
    cursor: pointer;
    border-radius: 0;
    text-transform: uppercase;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    gap: 0.5em;
    transition: all 0.25s;
    color: var(--text-primary);
}

.login button:hover,
.login .button:hover {
    border-color: var(--accent-primary);
    text-decoration: none;
}

.login-header {
    margin-bottom: 2.5em;
}

.login-header > *:last-child {
    margin-bottom: 0;
}

.login-providers {
    width: 100%;
}

.controls {
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;
}

.terms {
    text-align: left;
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.75em;
}

div.error {
    padding: 0.5rem;
    color: red;
    border: 1px solid red;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 2.5em;
}

label,
form,
button,
input,
optgroup,
select,
textarea {
    display: block;
    box-sizing: border-box;
    font-family: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

form {
    width: 100%;
}

label {
    text-transform: uppercase;
    font-family: var(--font-mono);
    padding: 0;
    color: inherit;
    margin-bottom: 0.5em;
}

input[type="password"],
input[type="email"] {
    width: 344px;
    padding: 0.5rem;
    border: 1px solid rgba(87, 83, 78, 1);
    width: 100%;
}

input {
    border-color: var(--border-subtle);
    background: transparent;
    width: 100%;
    border-radius: 0;
    font-family: var(--font-primary);
}

input::placeholder {
    color: var(--text-tertiary);
}

.profile-image {
    margin-right: 1em;
}

.user {
    display: flex;
    margin-bottom: 1em;
}

.info {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.or {
    text-transform: uppercase;
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    margin: 1em 0;
}
.or span {
    background-color: var(--bg-primary);
    display: flex;
    position: relative;
    z-index: 1;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.5em;
    padding-right: 0.5em;
}
.or::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-top: 1px solid var(--text-tertiary);
}

.input-group {
    margin-top: 1em;
}
.input-group:first-child {
    margin-top: 0;
}

.input-group input[type="email"],
.input-group input[type="password"] {
    margin-top: 0.5em;
}

.change-method-cta {
    margin-top: 2em;
    text-align: center;
    width: 100%;
}

/**
*** RUN CACHE THEME
***/

.run-cache .login-wrapper {
    background-image: radial-gradient(
        var(--accent-strong-50) 1px,
        transparent 1px
    );
    background-color: var(--bg-secondary);
    background-position: 28px 28px;
    background-size: 20px 20px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.run-cache .login::before {
    content: "";
    position: absolute;
    display: block;
    width: 48px;
    height: 48px;
    border-left: 4px solid #f47658;
    border-top: 4px solid #f47658;
    left: -2px;
    top: -2px;
    border-radius: 2px;
}

.run-cache .login::after {
    content: "";
    position: absolute;
    display: block;
    width: 48px;
    height: 48px;
    border-right: 4px solid #f47658;
    border-top: 4px solid #f47658;
    right: -2px;
    top: -2px;
    border-radius: 2px;
}

.run-cache .login .corner-decorations-b::before {
    content: "";
    position: absolute;
    display: block;
    width: 48px;
    height: 48px;
    border-left: 4px solid #f47658;
    border-bottom: 4px solid #f47658;
    left: -2px;
    bottom: -2px;
    border-radius: 2px;
}

.run-cache .login .corner-decorations-b::after {
    content: "";
    position: absolute;
    display: block;
    width: 48px;
    height: 48px;
    border-right: 4px solid #f47658;
    border-bottom: 4px solid #f47658;
    right: -2px;
    bottom: -2px;
    border-radius: 2px;
}
