/* Crystal Launcher account pages. Matches crystal-launcher.pl; the launcher's theme comes from auth-theme.js. */

@font-face {
    font-family: "Jersey 15";
    src: url("/static/fonts/Jersey15-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Roboto";
    font-weight: 400;
    src: url("/static/fonts/Roboto-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Roboto";
    font-weight: 500;
    src: url("/static/fonts/Roboto-Medium.ttf") format("truetype");
}

*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    font-family: "Roboto", "Segoe UI", system-ui, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    color: #eef4f8;
    background-color: #070d14;
    background-image: linear-gradient(rgba(18, 50, 74, .55), transparent 420px), url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2296%22 height=%2296%22 shape-rendering=%22crispEdges%22%3E%3Crect x=%220%22 y=%228%22 width=%2216%22 height=%228%22 fill=%22%230b141d%22/%3E%3Crect x=%2240%22 y=%220%22 width=%228%22 height=%2216%22 fill=%22%230b141d%22/%3E%3Crect x=%2272%22 y=%2224%22 width=%2216%22 height=%228%22 fill=%22%230b141d%22/%3E%3Crect x=%2216%22 y=%2248%22 width=%228%22 height=%2216%22 fill=%22%230b141d%22/%3E%3Crect x=%2256%22 y=%2264%22 width=%2224%22 height=%228%22 fill=%22%230b141d%22/%3E%3Crect x=%220%22 y=%2280%22 width=%228%22 height=%228%22 fill=%22%230b141d%22/%3E%3Crect x=%2232%22 y=%2232%22 width=%228%22 height=%228%22 fill=%22%230f2a33%22/%3E%3Crect x=%2240%22 y=%2240%22 width=%228%22 height=%228%22 fill=%22%2314414b%22/%3E%3Crect x=%2280%22 y=%2272%22 width=%228%22 height=%228%22 fill=%22%230f2a33%22/%3E%3Crect x=%2288%22 y=%2280%22 width=%228%22 height=%228%22 fill=%22%2314414b%22/%3E%3C/svg%3E");
    background-repeat: no-repeat, repeat;
}

.in-launcher body {
    background-image: none;
}

a {
    color: #36d6e0;
}

b, strong {
    font-weight: 500;
}

/* Layout */

.auth {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    min-height: 100%;
    padding: 16px;
}

.panel {
    width: 100%;
    max-width: 460px;
    background: #111a24;
    box-shadow: inset 3px 3px 0 #2d465b, inset -3px -3px 0 #05090e;
    -webkit-clip-path: polygon(0 6px, 6px 6px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px));
    clip-path: polygon(0 6px, 6px 6px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px));
}

.panel--wide {
    max-width: 720px;
}

.panel__head {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 16px 20px 12px;
    background: #182431;
    box-shadow: inset 3px 3px 0 #2d465b, inset -3px 0 0 #05090e;
    border-bottom: 4px dashed #36d6e0;
}

.panel__logo {
    width: 36px;
    height: 36px;
    margin-right: 10px;
}

.panel__title {
    margin: 0;
    font-family: "Jersey 15", "Roboto", sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.05;
    text-align: center;
    letter-spacing: .01em;
}

.panel__body {
    padding: 18px 20px 20px;
}

.panel__body p {
    margin: 0 0 12px;
}

.panel__lead {
    text-align: center;
}

.panel__note {
    margin-top: 14px;
    font-size: 13px;
    text-align: center;
}

.panel__small {
    display: block;
    font-size: 12px;
    opacity: .75;
}

/* Forms */

.fields {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -6px;
}

.field {
    width: 100%;
    padding: 0 6px 12px;
}

.field--half {
    width: 50%;
}

.field label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 500;
}

.field--captcha {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: flex-end;
    align-items: flex-end;
}

.field--captcha > div {
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
}

.captcha-image {
    display: block;
    -webkit-flex: none;
    flex: none;
    width: 156px;
    height: 52px;
    margin-left: 12px;
    background: #fff;
}

.textbox {
    display: block;
    width: 100%;
    height: 38px;
    padding: 0 12px;
    font: inherit;
    color: #eef4f8;
    background: #0a1118;
    border: 0;
    border-radius: 0;
    outline: none;
    box-shadow: inset 3px 3px 0 #05090e, inset -3px -3px 0 #2d465b;
    -webkit-appearance: none;
}

.textbox:focus {
    box-shadow: inset 3px 3px 0 #05090e, inset -3px -3px 0 #36d6e0;
}

.textbox[readonly] {
    opacity: .7;
}

/* Buttons */

.actions {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    margin-top: 4px;
}

.actions--center {
    -webkit-justify-content: center;
    justify-content: center;
}

.btn {
    display: inline-block;
    min-width: 132px;
    padding: 9px 22px 10px;
    font-family: "Jersey 15", "Roboto", sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.1;
    color: #03191c;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    background: #36d6e0;
    border: 0;
    border-radius: 0;
    box-shadow: inset 3px 3px 0 #a8f3f7, inset -3px -3px 0 #0f8f9a;
    -webkit-appearance: none;
}

.btn:hover, .btn:focus {
    background: #6ce4ec;
    outline: none;
}

.btn:active {
    box-shadow: inset 3px 3px 0 #0f8f9a, inset -3px -3px 0 #a8f3f7;
}

.btn--ghost {
    color: #eef4f8;
    background: #182431;
    box-shadow: inset 3px 3px 0 #2d465b, inset -3px -3px 0 #05090e;
}

.btn--ghost:hover, .btn--ghost:focus {
    background: #21384a;
}

.btn--ghost:active {
    box-shadow: inset 3px 3px 0 #05090e, inset -3px -3px 0 #2d465b;
}

.btn--danger {
    color: #fff;
    background: #b4513a;
    box-shadow: inset 3px 3px 0 #e08a74, inset -3px -3px 0 #6e2c1d;
}

.btn--danger:hover, .btn--danger:focus {
    background: #c9634b;
}

.btn--danger:active {
    box-shadow: inset 3px 3px 0 #6e2c1d, inset -3px -3px 0 #e08a74;
}

.btn--block {
    display: block;
    width: 100%;
}

/* Messages */

.alert {
    margin-bottom: 14px;
    padding: 10px 14px;
    font-size: 14px;
    color: #fff;
    background: #3a1a14;
    box-shadow: inset 3px 3px 0 #b4513a, inset -3px -3px 0 #1e0c08;
}

/* Sending indicator */

#loader {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: none;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    background: #36d6e0;
    -webkit-animation: auth-blocks 1s steps(1) infinite;
    animation: auth-blocks 1s steps(1) infinite;
}

@-webkit-keyframes auth-blocks {
    0% { box-shadow: -24px 0 0 #36d6e0, 24px 0 0 #182431; }
    33% { box-shadow: -24px 0 0 #182431, 24px 0 0 #182431; background: #36d6e0; }
    66% { box-shadow: -24px 0 0 #182431, 24px 0 0 #36d6e0; background: #182431; }
}

@keyframes auth-blocks {
    0% { box-shadow: -24px 0 0 #36d6e0, 24px 0 0 #182431; }
    33% { box-shadow: -24px 0 0 #182431, 24px 0 0 #182431; background: #36d6e0; }
    66% { box-shadow: -24px 0 0 #182431, 24px 0 0 #36d6e0; background: #182431; }
}

.is-sending #wrapper {
    visibility: hidden;
}

/* Two-factor page */

.panel__subtitle {
    margin: 0 0 12px;
    font-family: "Jersey 15", "Roboto", sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
}

.skin-head {
    display: block;
    width: 96px;
    height: 96px;
    margin: 0 auto 14px;
    image-rendering: pixelated;
    box-shadow: 0 0 0 3px #05090e, 0 0 0 6px #2d465b;
}

.actions--center .btn {
    margin: 4px;
}

.steps {
    margin: 0 0 14px;
    padding-left: 22px;
}

.steps li {
    margin-bottom: 12px;
}

.warning-box {
    margin-bottom: 14px;
    padding: 12px 14px;
    text-align: center;
    background: #3a1a14;
    box-shadow: inset 3px 3px 0 #b4513a, inset -3px -3px 0 #1e0c08;
}

.warning-box strong {
    color: #ffd2c6 !important;
}

.warning-box .btn {
    margin-top: 10px;
}

.qr {
    display: none;
    margin-bottom: 14px;
    font-size: 13px;
    text-align: center;
}

.qr img {
    display: block;
    margin: 0 auto 10px;
    padding: 8px;
    background: #fff;
}

.panel__foot {
    display: block;
    margin-top: 18px;
    padding-top: 12px;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
    border-top: 4px dashed #26384a;
}

.panel__foot img {
    display: block;
    margin: 6px auto 0;
}

/* Scroll bars in the launcher's web view */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0a1118;
}

::-webkit-scrollbar-thumb {
    background: #2d465b;
    box-shadow: inset 2px 2px 0 #4a6a82;
}

/* The launcher window is small: tighter spacing so register fits without scrolling. */

.in-launcher .auth {
    padding: 8px;
}

.in-launcher .panel__head {
    padding: 10px 16px 8px;
}

.in-launcher .panel__title {
    font-size: 26px;
}

.in-launcher .panel__body {
    padding: 12px 16px 14px;
}

.in-launcher .panel__logo {
    display: none;
}

.in-launcher .field {
    padding-bottom: 8px;
}

.in-launcher .textbox {
    height: 34px;
}

.in-launcher .captcha-image {
    width: 144px;
    height: 48px;
}

.in-launcher .btn {
    padding: 7px 20px 8px;
    font-size: 20px;
}

@media (max-width: 560px) {
    .field--half {
        width: 100%;
    }

    .panel__body {
        padding: 16px;
    }

    .actions .btn {
        width: 100%;
        margin-top: 8px;
    }
}
