:root {
    --scale: calc(0.013 * min(13vw, 9vh));
    --bg-color: rgb(255, 255, 255);
    --shadow-color: rgba(0, 0, 0, 0.15);
    --title-color: rgba(0, 0, 0, 0.8);
    --label-color: rgba(0, 0, 0, 0.5);
    --input-color: rgba(0, 0, 0, 0.95);
}

.main {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.box {
    display: flex;
    flex-direction: row;
    width: auto;
    height: auto;
    margin: auto auto;
    background: var(--bg-color);
    border-radius: calc(10 * var(--scale));
    box-shadow: calc(0 * var(--scale)) calc(2 * var(--scale)) calc(6 * var(--scale)) calc(-1 * var(--scale)) var(--shadow-color);
}


.left {
    width: calc(200 * var(--scale));
    height: auto;
    min-height: 100%;
    background-image: url('../images/background.jpg');
    background-size: cover;
}

.right {
    padding: calc(40 * var(--scale)) calc(30 * var(--scale)) calc(20 * var(--scale)) calc(30 * var(--scale));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.title {
    margin-bottom: calc(20 * var(--scale));
    font-size: calc(24 * var(--scale));
    font-weight: 600;
    color: var(--title-color);
}

.field {
    position: relative;
    margin-bottom: calc(14 * var(--scale));
}

.input {
    font-size: calc(16 * var(--scale));
    padding: calc(20 * var(--scale)) calc(0 * var(--scale));
    height: calc(56 * var(--scale));
    border: none;
    border-bottom: solid calc(1 * var(--scale)) rgba(0, 0, 0, 0.2);
    min-width: calc(280 * var(--scale));
    box-sizing: border-box;
    color: #000;
    font-weight: 400;
    transition: padding 0.3s;
}

.input:autofill {
    padding: calc(28 * var(--scale)) calc(0 * var(--scale)) calc(15 * var(--scale)) calc(0 * var(--scale));
}

.input:autofill,
.input:-webkit-autofill,
.input:not(:placeholder-shown) {
    padding: calc(28 * var(--scale)) calc(0 * var(--scale)) calc(15 * var(--scale)) calc(0 * var(--scale));
}

.input:autofill:focus {
    border-bottom: solid calc(1 * var(--scale)) rgba(0, 0, 0, 0.5);
}

.input:autofill:focus,
.input:-webkit-autofill:focus,
.input:focus {
    border-bottom: solid calc(1 * var(--scale)) rgba(0, 0, 0, 0.5);
}

.label {
    position: absolute;
    top: calc(50% - calc(7 * var(--scale)));
    left: 0;
    opacity: 0;
    font-size: calc(12.5 * var(--scale));
    color: var(--label-color);
    font-weight: 400;
    transition:
        opacity 0.15s ease-in-out,
        transform 0.30s ease-in-out;
}

.input:autofill+.label {
    opacity: 1;
    transform: translateY(calc(-13 * var(--scale)));
    transition:
        opacity 0.30s ease-in-out,
        transform 0.15s ease-in-out;
}

.input:autofill+.label,
.input:-webkit-autofill+.label,
.input:not(:placeholder-shown)+.label {
    opacity: 1;
    transform: translateY(calc(-13 * var(--scale)));
    transition:
        opacity 0.30s ease-in-out,
        transform 0.15s ease-in-out;
}

.button {
    margin: calc(30 * var(--scale)) auto calc(10 * var(--scale)) auto;
    min-width: calc(200 * var(--scale));
    border-radius: calc(999 * var(--scale));
    text-align: center;
    padding: calc(15 * var(--scale)) calc(40 * var(--scale));
    color: #fff;
    font-size: calc(17 * var(--scale));
    font-weight: 500;
    box-shadow: calc(0 * var(--scale)) calc(2 * var(--scale)) calc(6 * var(--scale)) calc(-1 * var(--scale)) rgba(0, 0, 0, .13);
    background-color: hsla(225, 35%, 25%, 0.9);
}

button:hover {
    background-color: hsla(225, 30%, 30%, 0.9);
}

button:hover:active {
    background-color: hsla(225, 25%, 35%, 0.9);
}
