* {
    font-family: "Nanum Gothic", sans-serif;
}

.btn,
.forgot-password {
    cursor: pointer;
}

.login-box {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 400px;
    padding: 40px;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    display: none;
    opacity: 0;
    transition: all 1s ease;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
}

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-thumb {
    background-color: #03e9f4;
}

.login-box.display {
    display: block;
}

.login-box.show {
    opacity: 1;
}

.login-box h2 {
    margin: 0 0 30px;
    padding: 0;
    color: #fff;
    text-align: center;
    font-weight: 900;
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.login-box .user-box {
    position: relative;
}

.login-box .user-box input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    margin-bottom: 30px;
    border: none;
    border-bottom: 1px solid #fff;
    outline: none;
    background: transparent;
}
.login-box input::selection {
    background: #03e9f4;
}
.login-box input::placeholder {
    color: rgb(231, 231, 231);
}
.login-box .user-box label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    pointer-events: none;
    transition: 0.5s;
}

.login-box .user-box input:focus ~ label,
.login-box .user-box input:not(:placeholder-shown) ~ label {
    top: -20px;
    left: 0;
    color: #03e9f4;
    font-size: 12px;
}

.login-box form .btn {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    color: #03e9f4;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
    transition: 0.5s;
    margin-top: 40px;
    letter-spacing: 4px;
}

.login-box .btn:hover {
    background: #03e9f4;
    color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px #03e9f4, 0 0 25px #03e9f4, 0 0 50px #03e9f4,
        0 0 100px #03e9f4;
}

.login-box .btn span {
    position: absolute;
    display: block;
}

.login-box .btn span:nth-child(1) {
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #03e9f4);
    animation: btn-anim1 1s linear infinite;
}

@keyframes btn-anim1 {
    0% {
        left: -100%;
    }
    50%,
    100% {
        left: 100%;
    }
}

.login-box .btn span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #03e9f4);
    animation: btn-anim2 1s linear infinite;
    animation-delay: 0.25s;
}

@keyframes btn-anim2 {
    0% {
        top: -100%;
    }
    50%,
    100% {
        top: 100%;
    }
}

.login-box .btn span:nth-child(3) {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, #03e9f4);
    animation: btn-anim3 1s linear infinite;
    animation-delay: 0.5s;
}

@keyframes btn-anim3 {
    0% {
        right: -100%;
    }
    50%,
    100% {
        right: 100%;
    }
}

.login-box .btn span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #03e9f4);
    animation: btn-anim4 1s linear infinite;
    animation-delay: 0.75s;
}

@keyframes btn-anim4 {
    0% {
        bottom: -100%;
    }
    50%,
    100% {
        bottom: 100%;
    }
}

.button-box {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

.forgot-password {
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.15em;
}

#history.table {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 400px;
    min-height: 60vh;
    width: 80%;
    padding: 20px 40px;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    box-sizing: border-box;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    color: #fff;
    display: none !important;
}


#introduce.introduce {
    position: absolute;
    top: 50%;
    left: 50%;
    width: fit-content;
    padding: 20px 40px;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    box-sizing: border-box;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    color: #fff;
    display: none !important;
}

#history.table.display,
#introduce.introduce.display {
    display: block !important;
}

.top-table {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.row-coin {
    display: flex;
    gap: 20px;
    align-items: center;
}
.current-coin {
    font-weight: 900;
    font-size: 1.2em;
}
.btn-swap-coin {
    background: #00a6efff !important;
    border: 2px solid rgb(2, 125, 177);
    border-radius: 5px;
    font-weight: 600;
    padding: 10px 20px;
    color: #fff;
    cursor: pointer;
}
.table-content {
    max-height: 80vh;
    overflow-y: scroll;
    position: relative;
}
.table-content table {
    width: 100%;
}
.table-content table thead {
    border-bottom: 2px solid #fff;
}
.table-content table th,
.table-content table td {
    height: 40px;
    padding: 10px;
}
.table-content table th {
    text-align: left;
    vertical-align: middle;
}
.custom-form {
    color: #fff;
    min-width: 80vw;
    padding: 20px 40px;
}
.top-box {
    display: flex;
    align-items: center;
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 600;
}
button.top-box {
    cursor: pointer;
}
.top-box i {
    font-size: 0.8em;
    margin-right: 5px;
    margin-top: 4px;
}
.custom-form .section-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.custom-form .title-section {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1em;
}

.custom-form .section-row label {
    width: 15%;
}
.custom-form .section-row input {
    flex: 1;
    background: transparent;
    border: 1px solid #fff;
    min-height: 30px;
    border-radius: 4px;
    outline: none;
    padding: 5px 10px;
    color: #fff;
}
.custom-form .section-row input:focus {
    border-color: #03e9f4;
}
.custom-form .section-row button {
    margin-top: 20px;
}
.custom-form .section-row.center-row {
    justify-content: center;
}
.custom-form .section-row button.btn-submit {
    min-width: 200px;
    padding: 10px 20px;
}
.custom-form .section-row .section-check {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}
.custom-form .section-row .section-check button {
    margin: 0px;
    min-width: 100px;
    height: 44px;
}

#history.table table {
    overflow-x: auto;
}

#history.table table::-webkit-scrollbar {
    width: 1px;
}

#introduce.introduce img {
    width: 60%;
    margin-bottom: 20px;
}

#introduce.introduce p {
    margin-bottom: 15px;
    font-size: 18px;
}

@media (max-width: 767px) {
    .login-box {
        min-width: 100vw;
        max-height: 100vh;
        padding: 20px;
    }
    .custom-form .section-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .custom-form .section-row label,
    .custom-form .section-row input {
        width: 100%;
        box-sizing: border-box;
    }
    .custom-form .section-row.center-row {
        align-items: center;
    }
    .top-table,
    .row-coin {
        flex-wrap: wrap;
    }
    #history.table {
        box-sizing: border-box;
        padding: 20px;
        min-width: 100vw;
        min-height: 100vh;
    }

    #introduce.introduce {
        box-sizing: border-box;
        padding: 20px;
        min-width: 100vw;
    }
}

@media (min-width: 1260px) {
    #introduce.introduce img {
        max-width: 40vw;
    }
}
