﻿* {
    box-sizing: border-box;
    color: #000000;
}

div {
    display: block;
}

body {
    font-family: "Open Sans";
    background: #FFFFFF;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

@media (max-width: 768px) {
    .border-right {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
}

h2 {
    border-bottom: 2px solid #eceff1;
}

img[src="/CES-Logo-RGB-1125x300.png"] {
    display: none !important;
}

body {
    font-family: "Open Sans";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #005EAAE5;
}

.login-container {
    background-color: #fff;
    width: 756px;
    top: 50%;
    left: 50%;
    border-radius: 2px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    transform: translate(-50%, -50%);
}

.login-wrapper {
    display: flex;
    border-bottom: 0px solid #ccc;
    position: relative;
}

.login-section,
.register-section {
    width: 50%;
    padding: 30px 40px;
}

    .login-section h2,
    .register-section h2 {
        font-size: 24px;
        margin-bottom: 20px;
        color: #333;
        font-weight: 600;
        line-height: 36px;
        letter-spacing: 0.4px;
    }

    .login-section input[type="text"],
    .login-section input[type="password"] {
        width: 100%;
        height: 56px;
        padding: 17px 10px;
        font-size: 16px;
        line-height: 24px;
        border: 1px solid #AEAEB2;
        border-radius: 6px;
        box-shadow: inset 0px 2px 3px rgba(0, 0, 0, 0.25);
        color: #20282F;
        background: #FFFFFF;
        margin-bottom: 16px;
    }

        .login-section input[type="text"]:focus,
        .login-section input[type="password"]:focus {
            outline: none !important;
            border: 2px solid #004d85 !important;
            box-shadow: none !important;
        }

    .register-section .btn {
        margin-top: 11px;
    }

.btn {
    width: 321px;
    height: 56px;
    margin-top: 12px;
    background: #005DAA;
    border-radius: 6px;
    color: white;
    padding: 17px 40px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    font-family: "Open Sans";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border: none;
    box-shadow: none;
    outline: none;
}

    .btn:hover {
        background-color: rgba(0, 93, 170, 0.9);
    }

/* Custom styled validation message */
.custom-error-box {
    display: flex;
    align-items: flex-start;
    background-color: #fef4f2;
    border: 1px solid #cc4000;
    border-radius: 2px;
    padding: 12px 17px;
    font-size: 14px;
    line-height: 1.5;
    color: #20282F;
    gap: 24px;
    margin-bottom: 16px;
    margin-top: 10px;
}

.error-icon-wrapper {
    flex-shrink: 0;
    margin-top: 2px;
}

.circle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cc4000;
    color: #cc4000;
    font-family: sans-serif;
    line-height: 1;
}

.custom-error-text p {
    margin: 0;
    color: #20282F;
}

.reset-link {
    color: #004d85;
    font-weight: normal;
    text-decoration: underline;
}

.forgot-links {
    margin-top: 22px;
    font-size: 16px;
    font-family: "Open Sans";
    line-height: 38px;
    font-style: normal;
    font-weight: 600;
}

    .forgot-links a {
        color: #0060a9;
        line-height: 25px;
        font-weight: 400;
        text-decoration: underline;
        margin: 0 2px;
    }

.form-close {
    font-size: 32px;
    top: 10px;
    right: 10px;
    padding: 12px;
}

.register-section p {
    font-size: 16px;
    margin: 8px 0;
}

    .register-section p:first-child {
        font-weight: bold;
        color: #0060a9;
        margin-bottom: 6px;
    }

.login-section,
.register-section {
    width: 50%;
    padding: 20px 28px;
    margin-bottom: 20px;
    margin-top: 20px;
}

    .register-section .close-icon {
        float: none;
        display: block;
        text-align: right;
        margin-bottom: 10px;
        margin-top: 10px;
    }

.border-right {
    border-right: 1px solid #ddd;
}

a.form-close {
    cursor: pointer;
    position: absolute;
    font-size: 56px;
    right: 6px;
    top: 1px;
    padding: 42px 30px;
    line-height: 1;
    color: #606366;
    text-decoration: none;
}

.invalid-field {
    color: red;
}

.field-validation-error,
span[data-valmsg-for="Input.Username"],
span[data-valmsg-for="Input.Password"] {
    display: block;
    font-family: "Open Sans";
    margin-top: -16px;
    margin-bottom: 12px;
    font-size: small;
    color: red;
    width: 100%;
    padding: 4px;
}

.or-divider {
    display: none;
}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        width: 350px;
        position: relative;
    }

    .login-section h2 {
        font-size: 24px;
        margin-bottom: 12px;
        color: #20282F;
        font-weight: 600;
        border-bottom: 1px solid #e0e0e0;
    }


    .login-section,
    .register-section {
        width: 100%;
        padding: 20px;
        border-bottom: 0px;
        margin-top: -22px;
    }

        .login-section input[type="text"],
        .login-section input[type="password"] {
            width: 280px;
            height: 56px;
            font-size: 16px;
            padding: 17px 10px;
            margin-top: 8px;
        }

            .login-section input[type="text"]:focus,
            .login-section input[type="password"]:focus {
                outline: none !important;
                border: 2px solid #004d85 !important;
            }

        .login-section h2 {
            font-size: 24px;
            margin-bottom: 8px;
            color: #20282F;
            font-weight: 400;
            border-bottom: 0px;
            line-height: 56px;
            border-bottom: 1px solid #e0e0e0;
            width: 310px;
        }
        .register-section h2 {
            font-size: 24px;
            margin-bottom: 8px;
            color: #20282F;
            font-weight: 400;
            border-bottom: 0px;
            margin-top: 10px;
        }
    .border-right {
        border-right: none;
        width: 280px;
        height: auto;
        margin-bottom: -14px;
    }

    .login-container {
        width: 350px;
        height: auto;
        top: 5%;
        transform: translate(-50%, 0);
    }

    .btn {
        font-size: 16px;
        padding: 16px;
        width: 280px;
        height: 56px;
        margin-top: 8px;
        margin-bottom: 12px;
    }

    .custom-error-box {
        width: 280px;
        max-width: 280px;
        padding: 10px 7px;
        font-size: 13.5px;
        line-height: 1.6;
        margin-top: 8px;
        margin-bottom: 12px;
        word-break: break-word;
    }

        .custom-error-box .custom-error-text {
            font-size: 13.5px;
            width: 100%;
            display: block;
        }

    .reset-link {
        font-weight: normal;
        color: #004d85;
        text-decoration: underline;
        word-break: break-word;
    }

    .forgot-links {
        margin-top: 10px;
        margin-bottom: 10px;
        width: 235px;
        font-size: 15px;
    }

    .form-close {
        font-size: 58px;
        top: -1px;
        right: -23px;
        padding: 1px 28px;
        line-height: 1;
        width: 80px;
        margin-top: -26px;
    }

    .or-divider {
        display: flex;
        align-items: center;
        width: 310px;
        justify-content: center;
        text-align: center;
        margin: 10px auto 10px;
        font-family: "Open Sans";
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #000000;
        margin-left: 12px;
    }

        .or-divider::before,
        .or-divider::after {
            content: "";
            width: 143px;
            flex: 1;
            height: 1px;
            background: #ccc;
            margin: 0 6px;
        }

    .register-section {
        margin-top: -24px;
        margin-bottom: 2px;
    }
}

html, body {
    overflow-y: hidden;
}
