html {
    width: 100%;
    height: 100%;

    &, body {
        font-family: 'Noto Sans KR', sans-serif;
    }
}

body {
    background: #f3f3f3;
    font-size: 14px;
    line-height: 1.6em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.attention-color { color: #e72539; font-weight: 600; }
.hide { display: none; }

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    background: rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
}

.form {
    z-index: 15;
    position: relative;
    background: #fff;
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
    box-sizing: border-box;
    margin: 100px auto 10px;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .form {
        width: 600px;
    }
}

.form-panel {
    padding: 60px calc(5% + 60px) 60px 60px;
    box-sizing: border-box;

    .one {
        &:before {
            content: '';
            display: block;
            opacity: 0;
            visibility: hidden;
            transition: 0.3s ease;
        }

        .hidden:before {
            display: block;
            opacity: 1;
            visibility: visible;
        }
    }

    &.two {
        z-index: 5;
        position: absolute;
        top: 0;
        left: 95%;
        background: #f7941e;
        width: 100%;
        min-height: 100%;
        padding: 60px calc(10% + 60px) 60px 60px;
        transition: 0.3s ease;
        cursor: pointer;

        &:before, &:after {
            content: '';
            display: block;
            position: absolute;
            top: 60px;
            left: 1.5%;
            background: rgba(255, 255, 255, 0.2);
            height: 30px;
            width: 2px;
            transition: 0.3s ease;
        }

        &:after {
            left: 3%;
        }

        &:hover {
            left: 93%;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        }

        &:hover:before, &:hover:after {
            opacity: 0;
        }

        &.active {
            left: 10%;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
            cursor: default;

            &:before, &:after {
                opacity: 0;
            }
        }
    }
}

.form-toggle {
    z-index: 10;
    position: absolute;
    top: 60px;
    right: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 100%;
    transform-origin: center;
    transform: translate(0, -25%) scale(0);
    opacity: 0;
    cursor: pointer;
    transition: all 0.3s ease;

    &:before, &:after {
        content: '';
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        width: 30px;
        height: 4px;
        background: #f7941e;
        transform: translate(-50%, -50%);
    }

    &:before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    &:after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    &.visible {
        transform: translate(0, -25%) scale(1);
        opacity: 1;
    }
}

.form-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 0 20px;

    &:last-child {
        margin: 0;
    }

    label {
        display: block;
        margin: 0 0 10px;
        color: rgba(0, 0, 0, 0.6);
        font-size: 1rem;
        font-weight: 500;
        line-height: 1;
        text-transform: uppercase;
        letter-spacing: 0.2em;
    }

    input {
        outline: none;
        display: block;
        background: rgba(0, 0, 0, 0.1);
        width: 100%;
        border: 0;
        border-radius: 4px;
        box-sizing: border-box;
        padding: 12px 20px;
        color: rgba(0, 0, 0, 0.6);
        font-family: inherit;
        font-size: inherit;
        font-weight: 500;
        line-height: inherit;
        transition: 0.3s ease;

        &:focus {
           color: rgba(0, 0, 0, 0.8);
        }
    }

    button {
        outline: none;
        background: #f7941e;
        width: 100%;
        border: 0;
        border-radius: 4px;
        padding: 12px 20px;
        color: #fff;
        font-family: inherit;
        font-size: 1rem;
        font-weight: 500;
        line-height: inherit;
        text-transform: uppercase;
        cursor: pointer;
    }

    .form-remember input[type='checkbox'] {
        display: inline-block;
        width: auto;
        margin: 0 10px 0 0;
    }

    .form-recovery {
        color: #d22234;
        opacity: 0.7;
        font-size: 1rem;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;

        &:hover {
            color: #d22234;
            opacity: 1;
        }
    }
}

.two .form-group {
    label, input, input:focus {
        color: #fff;
    }

    button {
        background: #fff;
        color: #f7941e;
    }
}

.two .form-header {
    h1 {
        position: relative;
        z-index: 40;
        color: #fff;
    }
}

.form-header {
    margin: 0 0 40px;

    h1 {
        padding: 4px 0;
        color: #f7941e;
        font-size: 2rem;
        font-weight: 700;
        text-transform: uppercase;
    }
}

.form-check-input[type="radio"] {
    width: 1.5em;
    height: 1.5em;
    margin-top: 0.125em;

    &:checked {
        accent-color: #e72539;
    }
}