*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background: var(--bg-color) !important;
    margin: 0;
    min-height: 100vh;
}

h1 {
    font-family: 'Kamikaze', sans-serif;
    color: white;
    line-height: 55px;
}

main {
    display: flex;
    justify-content: space-between;
    min-height: 100vh;
}

.infoSection {
    width: calc(100% - 628px);
    font-size: 20px;
    font-weight: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.infoSection__cnt {
    text-align: center;
    width: 350px;
    max-width: 100%;
}

.infoSection__cnt img {
    max-width: 160px;
    width: 100%;
}

.infoSection h1 {
    margin: 20px 10px;
}

.subtitle {
    color: white;
    font-size: 16px;
}

.formSection {
    background: white;
    width: 628px;
    min-height: 100vh;
    border-top-left-radius: 100px;
    border-bottom-left-radius: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    flex-shrink: 0;
}

.formSection__header {
    display: none;
}

.formSection__logo {
    max-width: 120px;
    width: 100%;
}

.fields__heading {
    display: none;
    margin-bottom: 28px;
}

.fields__heading h2 {
    font-family: 'Kamikaze', sans-serif;
    font-size: 26px;
    color: #202327;
    margin: 0 0 6px;
    line-height: 1.2;
}

.fields__heading p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.fields {
    width: 426px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floatingLabel {
    position: relative;
    flex: 1;
}

.floatingLabel input {
    width: 100%;
    padding-top: 18px;
    padding-bottom: 2px;
    font-size: 14px;
    background: transparent;
    outline: 0;
}

.floatingLabel label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: #A7AEB4;
    font-size: 14px;
    pointer-events: none;
    transition: all 0.2s ease;
}

.floatingLabel input:focus + label,
.floatingLabel input:not(:placeholder-shown) + label {
    top: 4px;
    transform: translateY(0);
    font-size: 10px;
    color: var(--primary-200);
}

.inputField {
    width: 100%;
    background-color: white;
    color: #202327;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #CBCFD2;
    padding: 5px 10px;
    border-radius: 5px;
}

.inputField i {
    color: var(--primary-200);
}

input {
    border: 0;
}

.buttonBox {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    row-gap: 5px;
}

.buttonBox button {
    cursor: pointer;
}

.primary-button {
    background: var(--primary-200);
    color: white;
    border: 0;
    font-weight: 700;
    font-size: 14px;
    padding: 15px 30px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background-color 0.6s, color 0.6s;
    width: 100%;
}

.primary-button:hover {
    background-color: var(--primary-300);
    color: rgb(235, 235, 235);
}

.forgotPass {
    display: block;
    font-size: 12px;
    color: var(--primary-200);
    text-decoration: none;
    text-align: center;
}

.forgotPass:hover {
    text-decoration: underline;
}

.field--error .inputField {
    border-color: #e53e3e;
    background-color: #fff5f5;
}

.field--error .inputField > i {
    color: #e53e3e;
}

.field--error .floatingLabel label {
    color: #e53e3e;
}

.field-error {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    padding-left: 4px;
    font-size: 0.78rem;
    color: #e53e3e;
    font-weight: 500;
    animation: slideDown 0.2s ease;
}

.field-error i {
    font-size: 0.75rem;
    flex-shrink: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .infoSection {
        width: calc(100% - 520px);
    }

    .formSection {
        width: 520px;
        border-top-left-radius: 70px;
        border-bottom-left-radius: 70px;
        padding: 60px 32px;
    }

    .fields {
        width: 380px;
    }
}

@media (max-width: 1000px) {
    main {
        flex-direction: column;
        min-height: 100vh;
    }

    .infoSection {
        display: flex;
        width: 100%;
        flex: 1;
        padding: 56px 32px 40px;
        align-items: center;
        justify-content: center;
    }

    .infoSection__cnt {
        width: 100%;
        max-width: 320px;
    }

    .infoSection__cnt img {
        max-width: 80px;
    }

    .infoSection h1 {
        font-size: 38px;
        line-height: 46px;
        margin: 16px 0 10px;
    }

    .formSection {
        width: 100%;
        min-height: auto;
        flex-shrink: 0;
        border-radius: 40px 40px 0 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        padding: 36px 24px 52px;
        justify-content: flex-start;
        align-items: stretch;
    }

    .formSection__header {
        display: none;
    }

    .fields__heading {
        display: none;
    }

    .fields {
        width: 100%;
        max-width: 100%;
        gap: 12px;
    }

    .inputField {
        padding: 8px 14px;
        border-radius: 8px;
    }

    .floatingLabel input {
        padding-top: 20px;
        padding-bottom: 4px;
        font-size: 15px;
    }

    .floatingLabel label {
        font-size: 15px;
    }

    .primary-button {
        padding: 16px;
        font-size: 16px;
        border-radius: 12px;
        margin-bottom: 0;
    }

    .buttonBox {
        margin-top: 24px;
        row-gap: 20px;
    }

    .forgotPass {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .infoSection {
        padding: 48px 24px 36px;
    }

    .infoSection h1 {
        font-size: 34px;
        line-height: 42px;
    }

    .formSection {
        border-radius: 36px 36px 0 0;
        padding: 32px 20px 48px;
    }
}

@media (max-width: 360px) {
    .infoSection {
        padding: 40px 20px 28px;
    }

    .infoSection h1 {
        font-size: 30px;
        line-height: 38px;
    }

    .formSection {
        padding: 28px 16px 44px;
    }

    .inputField {
        padding: 6px 10px;
    }
}
