﻿@font-face {
    font-family: 'Sweater School';
    src: url('../assets/font/sweater_school_rg-webfont.woff2');
    font-weight: 400;
}

@font-face {
    font-family: 'Sweater School Bold';
    src: url('../assets/font/sweater_school_bd-webfont.woff2');
    font-weight: 700;
}

body {
    background-color: #cef2f3;
}

.registration {
    font-family: "Sweater School", -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
    padding: 12px;
    color: #1a1a1a;

    @media (min-width:700px) {
        padding: 48px 32px;
    }
}

.panel {
    border-radius: 16px;
    max-width: 100%;
    background-color: #fff;
    padding: 12px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    width: 80%;
    margin: 0 auto;
    box-shadow: 0 1px 5px 0 rgba(102, 102, 102, 0.75), 0 2px 2px 0 rgba(102, 102, 102, 0.75), 0 3px 1px -2px rgba(102, 102, 102, 0.75);

    @media (min-width:800px) {
        padding: 32px 64px;
        width: 600px;
    }
}

h1 {
    font-family: "Sweater School Bold", -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
    color: #7251a1;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;

    @media (min-width: 700px) {
        font-size: 48px;
        margin-bottom: 32px;
    }
}

.button-actions {
    display: flex;
    justify-content: center;
    flex-direction: row-reverse;
}

button + button {
    margin-right: 20px;
}

button {
    font-family: 'Sweater School';
    -webkit-appearance: button;
    line-height: 20px;
    position: relative;
    padding: 18px 24px;
    border-radius: 24px;
    background-color: #3bae70;
    color: #fff;
    text-decoration: none;
    transition: all .3s cubic-bezier(.34, 1.56, .64, 1);
    text-align: center;
    box-shadow: inset 0 0 0 0 #3bae70, 0 0 0 0 #3bae70;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    border: none;
    cursor: pointer;
    width: auto;
    margin: 40px 0 20px;
    font-size: 16px;
    display: flex;
    outline: 1px solid #3bae70;
    letter-spacing: 1px;

    @media (min-width: 700px) {
        font-size: 18px;
    }
}

    button:hover {
        background-color: #2f8b5a;
        color: #fff;
        -webkit-transition-duration: .15s;
        -moz-transition-duration: .15s;
        transition-duration: .15s;
        -webkit-box-shadow: inset 0 0 0 2px #3bae70, 0 0 0 2px #3bae70;
        box-shadow: inset 0 0 0 2px #3bae70, 0 0 0 2px #3bae70;
    }

    button.btn-secondary {
        background: white;
        color: #3bae70;
        outline: 1px solid #79867f;
    }

form {
    text-align: left;
    width: 100%;
}

.field-wrapper {
    display: flex;
    flex-direction: column;
}

    .field-wrapper.flex {
        flex-direction: row;
    }

label {
    font-size: 16px;
    text-align: left;
    font-weight: 300;
    margin-bottom: 5px;
}

    label:nth-child(2n+1) {
        margin-top: 15px;
    }

input, select {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-shadow: inset 0 0 0 1px #ccc, 0 0 0 1px #ccc;
    display: block;
    width: 100%;
    font-family: inherit;
    background-color: #fff;
    transition: all .3s cubic-bezier(.165, .84, .44, 1);
    padding: 11px 12px;
    color: inherit;
    line-height: 24px;
    border: 0;
    background-clip: padding-box;
    border-radius: 8px;
    caret-color: #3bae70;
    font-size: 16px;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="grey"><path d="M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 99%;
    background-position-y: 12px;
    cursor: pointer;
}

    select option:first-of-type {
        color: #555e59;
        opacity: 1;
    }

    input:focus-visible, select:focus-visible {
        outline: none;
        box-shadow: inset 0 0 0 1px #3bae70, 0 0 0 1px #3bae70;
    }

.field-wrapper.flex > label {
    display: flex;
    flex-direction: row;
    margin-top: 25px;
}

.acceptTerms {
    position: absolute;
    z-index: -1;
    opacity: 0;
    width: auto;
}

.indicator {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #fff;
    vertical-align: middle;
    box-shadow: inset 0 0 0 1px #ccc, 0 0 0 1px #ccc;
    border-radius: 4px;
    transition: all .3s cubic-bezier(.165, .84, .44, 1);
    margin-right: 10px;

    .acceptTerms:active ~ &,
    .acceptTerms:focus ~ & {
        box-shadow: inset 0 0 0 2px #3bae70, 0 0 0 2px #3bae70;
    }

    .acceptTerms:checked ~ & {
        box-shadow: inset 0 0 0 1px #3bae70, 0 0 0 1px #3bae70;
    }

    .acceptTerms:hover:not([disabled]):checked ~ &,
    .acceptTerms:checked:focus ~ & {
        box-shadow: inset 0 0 0 2px #3bae70, 0 0 0 2px #3bae70;
    }

    .acceptTerms:hover:not([disabled]) ~ &,
    .acceptTerms:focus ~ & {
        box-shadow: inset 0 0 0 2px #ccc, 0 0 0 2px #ccc;
        transition-duration: .15s;
    }

    &::after {
        position: absolute;
        content: '';
        opacity: 0;
        transform: scale(0);
        transition: all .3s cubic-bezier(.165, .84, .44, 1);
    }

    .acceptTerms:checked ~ &::after {
        opacity: 1;
        transform: scale(1);
        transition-duration: .15s;
    }
}

    .indicator::after {
        top: 50%;
        left: 50%;
        margin-left: -3px;
        margin-top: -8px;
        width: 3px;
        height: 11px;
        transform: scale(0) rotate(45deg);
        border-style: solid;
        border-color: #3bae70;
        border-width: 0 3px 3px 0;
    }

.acceptTerms:checked ~ .indicator::after {
    transform: scale(1) rotate(45deg);
}

span.label-message {
    width: fit-content;
}

    span.label-message a {
        color: #000;
        font-weight: bold;
        letter-spacing: 0.8px;
    }

span.required {
    text-decoration: none;
    color: #b71c1c;
}

.password-message p {
    margin-bottom: 0;
}

.password-message ul {
    margin-top: 0.5em;
    color: #555e59;
}

.password-message li {
    font-size: 14px;
}

.error-message {
    padding: 1em 2em 1em 2em;
    margin: 2em 0 0;
    position: relative;
    background-color: #f6f5f8;
    color: #515151;
    border-top: 3px solid #b81c23;
    list-style: none outside;
    width: auto;
    word-wrap: break-word;
    font-size: 18px;
}

.right-inner-addon {
    position: relative;
}

    .right-inner-addon .inner-icon {
        cursor: pointer;
        position: absolute;
        right: 10px;
        top: 13px;
        width: 20px;
        height: 20px;
    }
