body {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    background-color: #f0f2f5;
}

* {
    font-family: "Roboto", sans-serif;
    box-sizing: border-box;
}

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg {
    display: none;
}

.loginbox {
    display: block;
    position: absolute;
    width: 360px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
}
.loginbox__container {
    padding: 30px;
}

.loginbox__header {
    text-align: center;
    background: rgba(22, 87, 110, 0.1);
    padding: 30px 0;
    margin: -30px -30px 30px -30px;
    border-radius: 20px 20px 0 0;
}

.loginbox__header h2 {
    margin: 0;
    padding: 20px 0 0;
    font-weight: 300;
    color: #16576e;
    font-size: 24px;
}

.loginbox__header .logo {
    position: relative;
    background: #fff;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 60px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.loginbox__header .logo img {
    position: absolute;
    width: 70%;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loginbox__form {
    margin-top: 20px;
}

.loginbox__form .field {
    position: relative;
    min-height: 44px;
    margin-bottom: 20px;
}

.loginbox__form .field input {
    display: block;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 15px;
    border: 1px solid #ccc;
    border-radius: 21px;
    outline: none;
    font-size: 16px;
    font-weight: 400;
    transition: border-color 300ms cubic-bezier(0.3, 0.14, 0.23, 0.94);
}

.loginbox__form .field input:focus {
    border-color: #16576e;
}

.loginbox__form .field input:focus:not(:has(.hidden)) + label,
.loginbox__form .field input.filled:not(:has(.hidden)) + label {
    top: -17px;
    left: 15px;
    font-size: 12px;
    color: #16576e;
}

.loginbox__form .field > label:not(.switch-label) {
    position: absolute;
    top: 11px;
    left: 15px;
    font-size: 16px;
    font-weight: 400;
    color: #a4a4a4;
    transition: all 300ms cubic-bezier(0.3, 0.14, 0.23, 0.94);
    pointer-events: none;
}

.loginbox__form .field .switch-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
}

.loginbox__form .field .switch-label > label {
    font-size: 16px;
    font-weight: 400;
}

.loginbox__form .field .switch-label .switch {
    position: relative;
    width: 50px;
    height: 24px;
}

.loginbox__form .field .switch-label .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.loginbox__form .field .switch-label .switch .box {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.loginbox__form .field .switch-label .switch .box:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.loginbox__form .field .switch-label .switch input:checked + .box {
    background-color: #16576e;
}

.loginbox__form .field .switch-label .switch input:checked + .box:before {
    transform: translateX(26px);
}

.loginbox__form .field input[type="submit"] {
    letter-spacing: .5px;
    height: 42px;
    line-height: 42px;
    padding: 0 2rem;
    text-transform: uppercase;
    background: #16576e;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 300ms cubic-bezier(0.3, 0.14, 0.23, 0.94);
}

.loginbox__form .field input[type="submit"]:hover {
    background: #1c6b88;
}

.loginbox__form .field input[type="submit"]:focus {
    background: #145066;
}

.loginbox .forgot {
    display: block;
    text-align: center;
    color: #16576e;
    text-decoration: none;
    margin: 15px 0;
    font-size: 14px;
}

.loginbox .validation-error {
    margin: 20px 0;
    color: #ff7373;
    text-align: center;
}