﻿/* Login page */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Gotham';
}

.form-control {
    width: 100%;
}

.header-bg-image {
    position: absolute;
    width: 100%;
    max-width: min(400px, 100dvw);
    height: auto;
}

body {
    background: #ffffff;
}

.login-error {
    color: #dc3545;
    background: #ffe5e5;
    border: 1px solid #dc3545;
    padding: 8px;
    border-radius: 6px;
    margin-top: 10px;
}

.desktop {
    max-width: 1512px;
    width: 100%;
    height: max-content;
    margin: 0 auto;
    position: relative;
}

.main-frame {
    display: flex;
    width: 100%;
    height: max-content;
    gap: 220px;
}

.left-section {
    height: auto;
    min-height: 100vh;
    position: relative;
}

.login-card {
    width: 100%;
    max-width: min(561px, 100dvw);
    height: 556px;
    background: #FFF9F0;
    border-radius: 18px;
    position: absolute;
    left: 130px;
    top: 50%;
    transform: translateY(-40%);
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.login-header {
    position: relative;
    width: 100%;
    max-width: min(461px, 100dvw);
    height: 63px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .login-header h1 {
        position: relative;
        font-size: 30px;
        font-weight: 350;
        color: #2C2B2B;
        z-index: 1;
    }

.subtitle {
    font-size: 16px;
    font-weight: 325;
    color: #6B7280;
    text-align: center;
}

.form-card {
    width: 461px;
    background: #FFF9F0;
    border-radius: 10px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .form-group label {
        font-size: 16px;
        font-weight: 350;
        color: #2C2B2B;
    }

    .form-group input {
        height: 43px;
        padding: 13px 14px;
        border-radius: 36px;
        border: 1px solid #AAAAAA;
        font-size: 14px;
        font-weight: 300;
    }

        .form-group input::placeholder {
            color: #AAAAAA;
        }

.signin-btn {
    height: 42px;
    border-radius: 30px;
    background: #2C2B2B;
    border: none;
    font-size: 18px;
    font-weight: 350;
    color: #FDB417;
    cursor: pointer;
}

.left-section,
.right-section {
    width: 50%;
    height: auto;
    min-height: 100vh;
}

.right-section {
    height: auto;
    min-height: 100vh;
    background: linear-gradient(204.13deg, #FFF8EE 2.23%, rgba(255, 230, 167, 0.5) 50.78%, #FFD166 99.33%);
    position: relative;
}

.logo-wrapper {
    position: absolute;
    width: 700px;
    height: 260px;
    left: 123px;
    top: 50%;
    transform: translateY(-40%);
    display: flex;
    justify-content: center;
    align-items: center;
}

    .logo-wrapper img {
        width: 441px;
        height: auto;
    }

.desktop {
    max-width: 1512px;
    width: 100%;
    margin: 0 auto;
}

.main-frame {
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .main-frame {
        gap: 32px;
    }

    .left-section,
    .right-section {
        width: 50%;
        min-width: 0;
    }

    .login-card {
        width: 100%;
        max-width: min(520px, 100dvw);
        left: 5%;
        padding-left: 18px;
        padding-right: 18px;
    }

    .login-header,
    .form-card {
        width: 100%;
        max-width: min(461px, 100dvw);
    }

    .form-card {
        padding: 28px;
        gap: 26px;
    }

    .logo-wrapper {
        width: 100%;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }

        .logo-wrapper img {
            width: min(82%, 420px);
            max-height: 260px;
            object-fit: contain;
        }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .main-frame {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 0;
        min-height: 100vh;
    }

    .left-section,
    .right-section {
        width: 50%;
        min-width: 0;
        min-height: 100vh;
    }

    .left-section {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 28px 14px;
    }

    .login-card {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: min(460px, 100dvw);
        height: auto;
        min-height: 0;
        margin: auto;
        padding: clamp(24px, 3.2vw, 34px) clamp(14px, 2vw, 24px);
        border-radius: 16px;
        gap: 16px;
    }

    .login-header {
        width: 100%;
        max-width: min(380px, 100dvw);
        height: 56px;
    }

    .header-bg-image {
        width: 100%;
        max-width: min(320px, 100dvw);
    }

    .login-header h1 {
        font-size: clamp(24px, 3vw, 28px);
    }

    .subtitle {
        font-size: 14px;
        line-height: 1.5;
    }

    .form-card {
        width: 100%;
        padding: 18px 8px 4px;
        gap: 22px;
    }

    .form-group {
        gap: 8px;
    }

        .form-group label {
            font-size: 14px;
        }

        .form-group input,
        .form-group .form-control {
            width: 100%;
            height: 44px;
            padding: 11px 13px;
            font-size: 14px;
        }

    .signin-btn {
        min-height: 44px;
        height: auto;
        font-size: 16px;
    }

    .login-error {
        margin-top: 0;
        font-size: 13px;
        line-height: 1.4;
    }

    .right-section {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
    }

    .logo-wrapper {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 260px;
        left: auto;
        top: auto;
        transform: none;
    }

        .logo-wrapper img {
            width: min(88%, 380px);
            max-height: 300px;
            object-fit: contain;
        }
}

@media (max-width: 767px) {
    .main-frame {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        min-height: 100vh;
        min-height: 100svh;
    }

    .right-section {
        order: -1;
        width: 100%;
        height: clamp(118px, 20vh, 158px);
        height: clamp(118px, 20svh, 158px);
        min-height: 118px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 14px 18px;
    }

    .logo-wrapper {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 0;
        left: auto;
        top: auto;
        transform: none;
    }

        .logo-wrapper img {
            width: min(65vw, 250px);
            max-height: 105px;
            object-fit: contain;
        }

    .left-section {
        order: 0;
        width: 100%;
        min-height: calc(100vh - 135px);
        min-height: calc(100svh - 135px);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px 18px 28px;
    }

    .login-card {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: min(460px, 100dvw);
        height: auto;
        min-height: 0;
        margin: auto;
        padding: 24px clamp(16px, 4vw, 24px) 22px;
        border-radius: 16px;
        gap: 12px;
    }

    .login-header {
        width: 100%;
        max-width: min(360px, 100dvw);
        height: 50px;
    }

    .header-bg-image {
        width: 100%;
        max-width: 270px;
    }

    .login-header h1 {
        font-size: 24px;
        text-align: center;
    }

    .subtitle {
        font-size: 14px;
        line-height: 1.5;
        padding: 0 4px;
    }

    .form-card {
        width: 100%;
        padding: 18px 6px 4px;
        gap: 20px;
    }

    .form-group {
        gap: 8px;
    }

        .form-group label {
            font-size: 14px;
        }

        .form-group input,
        .form-group .form-control {
            width: 100%;
            height: 44px;
            padding: 11px 14px;
            font-size: 14px;
        }

    .signin-btn {
        width: 100%;
        min-height: 44px;
        height: auto;
        font-size: 16px;
    }

    .login-error {
        margin-top: 0;
        font-size: 13px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .right-section {
        height: 116px;
        min-height: 116px;
        padding: 10px 16px;
    }

    .logo-wrapper img {
        width: min(68vw, 220px);
        max-height: 88px;
    }

    .left-section {
        min-height: calc(100vh - 116px);
        min-height: calc(100svh - 116px);
        padding: 16px 14px 22px;
    }

    .login-card {
        padding: 21px 16px 18px;
        gap: 10px;
        border-radius: 14px;
    }

    .login-header {
        height: 46px;
    }

        .login-header h1 {
            font-size: 22px;
        }

    .subtitle {
        font-size: 13px;
    }

    .form-card {
        padding: 16px 2px 2px;
        gap: 18px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group .form-control {
        height: 43px;
        padding: 10px 13px;
        font-size: 14px;
    }

    .signin-btn {
        min-height: 43px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .left-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .login-card {
        padding-left: 13px;
        padding-right: 13px;
    }

    .form-card {
        gap: 16px;
    }
}

@media (max-width: 767px) and (max-height: 600px) {
    .right-section {
        height: 92px;
        min-height: 92px;
        padding: 8px 14px;
    }

    .logo-wrapper img {
        max-height: 70px;
    }

    .left-section {
        min-height: 0;
        align-items: flex-start;
        padding-top: 14px;
        padding-bottom: 18px;
    }

    .login-card {
        padding-top: 18px;
        padding-bottom: 16px;
    }
}