:root {
    --primary-color: #8280ff;
    --primary-color-hover: #504f9e;
    --danger-color: #dc3545;
    --placeholder-text: #8f8fa1;
    --placeholder-bg: #e6e6e6;
}

*,
::before,
::after {
    margin: 0;
    box-sizing: border-box;
    border: 0 solid #e5e7eb;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

body {
    height: 100%;
}

h1 {
    font-size: 2.5rem;
    color: #403866;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    display: block;
    padding-bottom: 3rem;
}

form {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 390px;

}

svg {
    fill: currentColor;
}

.login-container {
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 1rem;

}

.wrap-input {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

input {
    display: block;
    width: 100%;
    height: 62px;
    line-height: 1.2;
    color: #403866;
    font-size: 18px;
    font-weight: 600;
    padding: 0 20px 0 38px;
    outline: none;
    background-color: var(--placeholder-bg);
    border: 1px solid transparent;
    border-radius: 0.5rem;
}

input:focus {
    border-color: transparent !important
}

input::-webkit-input-placeholder {
    color: var(--placeholder-text);
    font-weight: 600;
}

input:-moz-placeholder {
    color: var(--placeholder-text);
    font-weight: 600;
}

input:-ms-input-placeholder {
    color: var(--placeholder-text);
    font-weight: 600;
}

input:autofill {
    border: 3px dashed green;
    background-color: lightyellow;
}

input:-webkit-autofill {
    border: 3px dashed green;
    background-color: lightyellow;
    -webkit-box-shadow: 0 0 0px 1000px lightyellow inset;
}

.wrap-input .focus-input {
    position: absolute;
    display: block;
    width: calc(100% + 2px);
    /* height: calc(100% + 2px); */
    height: calc(62px + 2px);
    top: -1px;
    left: -1px;
    pointer-events: none;
    border: 1px solid var(--primary-color);
    border-radius: 0.5rem;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: all .5s;
    -o-transition: all .5s;
    -moz-transition: all .5s;
    transition: all .5s;
    -webkit-transform: scaleX(1.1) scaleY(1.3);
    -moz-transform: scaleX(1.1) scaleY(1.3);
    -ms-transform: scaleX(1.1) scaleY(1.3);
    -o-transform: scaleX(1.1) scaleY(1.3);
    transform: scaleX(1.1) scaleY(1.3)
}

.wrap-input input:focus+.focus-input {
    visibility: visible;
    opacity: 1;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1)
}

.wrap-input .input-error {
    display: none;
}

.wrap-input.error input,
.wrap-input.error input:focus+.focus-input {
    border-color: var(--danger-color);
}

.wrap-input.error .input-error {
    display: block;
    color: var(--danger-color);
}

.checkbox {
    cursor: pointer;
    display: inline-block;
}

.checkbox .switch {
    display: inline-block;
    background: var(--placeholder-bg);
    border-radius: 16px;
    width: 58px;
    height: 32px;
    position: relative;
    vertical-align: middle;
    transition: all 0.5s;
}

.checkbox .switch:before,
.checkbox .switch:after {
    content: "";
}

.checkbox .switch:before {
    display: block;
    background: linear-gradient(to bottom, #fff 0, #eee 100%);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
    width: 24px;
    height: 24px;
    position: absolute;
    top: 4px;
    left: 4px;
    transition: all 0.5s;
    -webkit-transition: all .5s;
}

.checkbox:hover .switch:before {
    transition: all .4s; 
    -webkit-transition: all .4s;
    background: linear-gradient(to bottom, #fff 0, #fff 100%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.checkbox input:checked+.switch {
    background: var(--primary-color);
}

.checkbox input:checked+.switch:before {
    left: 30px;
}

.checkbox input {
    position: absolute;
    visibility: hidden;
}

.checkbox .label {
    color: var(--placeholder-text);
    margin-left: 8px;
    position: relative;
    top: 2px;
}

form button {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.2;
    text-transform: uppercase;
    margin-top: 1.5rem;
    padding: 0 20px;
    width: 100%;
    height: 62px;
    border-radius: 0.75rem;
    background-color: var(--primary-color);
    cursor: pointer;
    -webkit-transition: all .5s;
    -o-transition: all .5s;
    -moz-transition: all .5s;
    transition: all .5s;
}

form button:hover {
    background-color: var(--primary-color-hover)
}

#alert {
    width: 100%;
    font-size: 1.0625rem;
}

.alert {
    display: flex;
    position: relative;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #495057;
    background-color: #fcfcfd;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
}

.alert.success {
    color: #0a3622;
    background-color: #12c99b;
    border: 1px solid #008c69;
    border-radius: 0.375rem;
}

.alert.error {
    color: #58151c;
    background-color: #f8d7da;
    border: 1px solid #e41749;
    border-radius: 0.375rem;
}

.alert svg {
    margin-right: 0.5rem
}