/* reset */
* {
    margin: 0;
    padding: 0;
}

/* common */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    background:#F9F5EF;
    min-height: 100vh;
}

/* index */
.wrapper {
    position: relative;
    width: 960px;
    height: 640px;
    background: transparent;
    border: 2px solid #E6E6E4;
    box-shadow: 0 0 25px #6C8a9A;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.wrapper .form-box {
    text-align: center;
    width: 50%;
    /* height: 100%; */
    
}

.wrapper .form-box.login {
    left: 0;
    padding: 0 60px 0 40px; /* 30->60 20->40 */
}

.wrapper .form-box.login .animation {
   
}

.wrapper.active .form-box.login .animation {
    transform: translateX(-120%);
    opacity: 0;
    filter: blur(10px);
    transition-delay: calc(.1s * var(--i));
}

.wrapper .form-box.register {
    right: 0;
}

.wrapper .form-box.register .animation {
    transform: translateX(120%);
    opacity: 0;
    filter: blur(10px);
    transition: .7s ease;
    transition-delay: calc(.1s * var(--j));
}

.wrapper.active .form-box.register .animation {
    transform: translateX(0);
    opacity: 1;
    filter: blur(0);
    transition-delay: calc(.1s * var(--i));
}

.form-box h2 {
    font-size: 32px;
    /* width: 85%; */
    text-align: center;
    color: #F1485B;
    margin: 20px;
}

.form-box .input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 25px 0 30px;
}

.input-box input {
    width: 80%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 30px 0px 30px;
    border-bottom: 2px solid #333;
    font-size: 1.5rem;
    font-weight: 500;
    transition: .5s;
}

.passreset a{
    display: block;
    padding: 10px;
    width: 140px;
    text-align: center;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: .5s;
    background-color: #6c8a9a;
    border: 2px solid #E6E6E4;
    border-radius: 40px;
    cursor: pointer;
    margin-top: 30px;

}


.btn-eye{
    position: relative;
    top: 3px;
    right: 8px;
    width: 22px;
    height: 22px;
    border: none;
    background-image: url(../images/login/icon-eye-slash.png);
    background-size: cover;
    /* background-position: 22px 44px; */
}
.btn-eye.open {
    background: url(../images/login/icon-eye.png);
    width: 22px;
    height: 22px;
    background-size: cover;
}

.input-box input:-webkit-autofill,
.modal-form-input input:-webkit-autofill {
    transition: background-color 10000s ease-in-out 0s;
}

.input-box input:focus
/*.input-box input:valid*/ {
    border-bottom: 2px solid #F1485B;
}

.input-box label {
    position: absolute;
    top: 20%;
    left: 0;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    transition: .5s;
}

.input-box input:focus~label
/*.input-box input:valid~label*/ {
    top: -5px;
    color: #F1485B;
}

.error-message {
    font-size: 13px;
    color: red;
    text-align: center;
    width: 90%;
}
.alert-message{
    font-size: 13px;
    color: #ba542c;
    text-align: center;
    width: 90%;
}
.btn {
    position: relative;
    width: 22%;
    height: 45px;
    background: transparent;
    color: #F9F5EF;
    border: 2px solid #E6E6E4;
    outline: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    z-index: 1;
    overflow: hidden;
    margin: 20px;
}

.btn::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 300%;
    background: linear-gradient(#686868,#232723,#373837,#757575);
    z-index: -1;
    transition: .5s;
}

.btn:hover::before {
    top: 0;
}

.wrapper .info-text {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wrapper .info-text.login {
    right: 0;
    text-align: right;
}

.wrapper .info-text.login .animation {
    transform: translateX(0);
    opacity: 1;
    filter: blur(0);
    transition: .7s ease;
    transition-delay: calc(.1s * var(--j));
}

.wrapper.active .info-text.login .animation {
    transform: translateX(120%);
    opacity: 0;
    filter: blur(10px);
    transition-delay: calc(.1s * var(--i));
}

.wrapper .info-text.register {
    left: 0;
    text-align: left;
    pointer-events: none;
}

.wrapper .info-text.register .animation {
    transform: translateX(-120%);
    opacity: 0;
    filter: blur(10px);
    transition: .7s ease;
    transition-delay: calc(.1s * var(--j));
}

.wrapper.active .info-text.register .animation {
    transform: translateX(0);
    opacity: 1;
    filter: blur(0);
    transition-delay: calc(.1s * var(--i));
}

.info-text.login h2 {
    font-size: 32px;
    color: #F9F5EF;
    line-height: 1.3;
    text-transform: uppercase;
    padding: 0 40px 0px 150px;
}

.info-text.login p {
    font-size: 14px;
    color: #F9F5EF;
    padding: 0 40px 60px 150px;
}

.info-text.register h2 {
    font-size: 32px;
    color: #F9F5EF;
    line-height: 1.3;
    text-transform: uppercase;
    padding: 0 150px 0px 40px;
}

.info-text.register p {
    font-size: 14px;
    color: #F9F5EF;
    padding: 0 150px 60px 40px;
}

.wrapper .bg-animate {
    position: absolute;
    top: -4px;
    right: 0;
    width: 1280px; /* 850->1280 */
    height: 800px; /* 600->800 */
    background: linear-gradient(45deg, #435b6c, #6C8a9A);
    border-bottom: 3px solid #6C8a9A;
    transform: rotate(10deg) skewY(45deg);
    transform-origin: bottom right;
    transition: 1.5s ease;
    transition-delay: 1.6s;
}

.wrapper.active .bg-animate {
    transform: rotate(0) skewY(0);
    transition-delay: .5s;
}

.wrapper .bg-animate2 {
    position: absolute;
    top: 100%;
    left: 250px;
    width: 1280px; /* 850->1280 */
    height: 1024px; /* 600->1024 */
    background: #F9F5EF;
    border-top: 3px solid #6C8a9A;
    transform: rotate(0) skewY(0);
    transform-origin: bottom left;
    transition: 1.5s ease;
    transition-delay: .5s;
}

.wrapper.active .bg-animate2 {
    transform: rotate(-10deg) skewY(-45deg);
    transition-delay: 1.2s;
}

.form-box .auth-code,
.form-box .sign-up {
    width: 90%;
    text-align: center;
    margin: 10px 0;
}

.form-box.register .login-block {
    width: 90%;
    text-align: center;
    margin: 10px;
}

.auth-code p a,
.sign-up p a,
.login-block p a {
    color: #F1485B;
    font-weight: 600;
    text-decoration: none;
    transition: .5s;
}

.auth-code p a:hover,
.sign-up p a:hover,
.login-block p a:hover {
    cursor: pointer;
    text-decoration: underline;
}

/* modal */
/*
#modal-content1,
#modal-content2 {
*/
.modal {
    width: 30%; /* 230830 tm 50% => 30% */
    margin: 0;
    padding: 10px 20px;
    border: 2px solid #aaa;
    background: #fff;
    position: fixed;
    display: none;
    z-index: 2;
}

/* 230825 tm add */
.modal-form {
    padding: 15px;
}

.modal-form hr {
    border: 1px solid #333;
    /* width: 400px; */
    width: 80%;
    margin: 5px 0;
}

.modal-form-input {
    margin-bottom: 10px;
}

.modal-form-input input{
    /* width: 400px; */
    width: 80%;
    height: 25px;
    font-size: 16px;
    border: none;
    outline: none;
    border-bottom: 2px solid #333;
    padding: 0;
}

.modal-form-input .underline-left {
    /* width: 400px; */
    width: 80%;
    height: 2px;
    background: #F1485B;
    position: relative;
    top: -2px;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.25s ease-out;
    -webkit-transition: transform 0.5s ease-out;
}

.input-style:focus + .underline-left {
    transform: scaleX(1);
    -webkit-transform: scaleX(1);
}

.modal-form button {
    height: 45px;
    padding: 10px;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #373837;
    border-radius: 40px;
    transition: .5s;
}

.modal-form button:hover {
    cursor: pointer;
    opacity: 0.8;
}
/* 230825 tm end */

#modal-overlay {
    z-index: 1;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-color: rgba(0,0,0,0.75);
}

.modal-p {
    margin-top: 1em;
}

.modal-p:first-child {
    margin-top: 0;
}

.button-link {
    color: #F1485B;
    font-weight: 600;
    text-decoration: none;
    transition: .5s;
}

.button-link:hover {
    cursor: pointer;
    text-decoration: underline;
}

/* 230830 tm add */
#modal-close {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 48px;
    font-size: 36px;
    color: #333;
    line-height: 62px;
    text-align: center;
    background: #E6E6E4;
}

#modal-close:hover {
    cursor: pointer;
}