@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    scroll-behavior: smooth;
    font-family: 'Roboto', sans-serif;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 9999999s ease-in-out 0s;
    -webkit-text-fill-color: #424242 !important;
}

input:focus::-webkit-input-placeholder {
    color: transparent;
}

input::placeholder {
    color: #ffffff54;
    font-size: 18px;
}

body {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left;
    background-color: #e4e7ed;
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    padding: 15px 0;
}

.display-none {
    display: none !important;
}

main {
    display: flex;
    flex-direction: column;
    width: 500px;
    max-width: 95%;
    border-radius: 12px;
    padding: 10px;
    border: 2px solid #662d91;
    margin: 0 auto;
    background-color: white;
}

.main-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 95%;
}

.main-header {
    width: 100%;
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    margin-top: 15px;
}

.header-btn {
    width: 50%;
    cursor: pointer;
    background: none;
    border: none;
    border-bottom: 2px solid #999999;
    padding: 5px;
    font-weight: bolder;
    font-size: 16px;
    color: #999999;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.header-btn-active {
    color: #662d91 !important;
    border-bottom: 2px solid #662d91 !important;
}

.input-submit {
    padding: 10px;
    border-radius: 8px;
    background-color: #662d91;
    width: 100%;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 5px;
    position: relative;
    display: flex;
    text-align: center;
    justify-content: center;
    transition: filter .15s ease-in-out, color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    user-select: none;
    height: 39px;
}

.input-submit-loading::before {
    right: 0 !important;
    animation-fill-mode: unset !important;
}

.input-submit-loading {
    cursor: wait !important;
    margin-top: 0 !important;
}

.input-submit::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 100%;
    background-color: #ffffff32;
    animation-duration: 0.3s;
    animation-fill-mode: forwards;
}

.input-submit:focus::before,
.input-submit:hover::before {
    animation-name: btn;
}

@keyframes btn {
    from {
        right: 100%;
    }

    to {
        right: 0%;
    }
}

.form-input-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 15px;
}

.form-input-content-icon {
    display: flex;
    align-items: center;
    border: 2px solid #662d91 !important;
    border-radius: 8px;
    position: relative;
}

.form-label {
    margin-bottom: -9px;
    margin-left: 9px;
    width: fit-content;
    background: white;
    z-index: 1;
    font-size: 14px;
    font-weight: 500;
    color: #662d91;
    padding: 0 5px;
}

.form-icon {
    font-size: 25px;
    color: white !important;
    padding-left: 8px;
    padding-top: 5px;
    padding-right: 7px;
    height: 100%;
    position: absolute;
    align-items: baseline;
    right: 0;
    display: flex;
    justify-content: center;
    top: 0;
    background-color: #662d91;
}

.form-input {
    width: calc(100% - 40px);
    font-size: 16px;
    border: none;
    background: none;
    padding: 8px 7px;
    color: #4c4c4c;
    font-weight: 500;
}

.copyright {
    margin: 0 auto;
    font-size: 12px;
    text-align: center;
    color: #662d91;
    margin-top: 10px;
}

.icon-rotate {
    animation: rotation 1s infinite linear;
    font-size: 24px;
    position: absolute;
    top: 8px;
}

.alert-error {
    border: 2px solid rgb(197 134 134);
    background-color: #ffeaea;
    padding: 6px;
    margin-bottom: 12px;
    border-radius: 8px;
    display: flex;
    width: 100%;
}

.alert-error-text {
    color: rgb(177 109 109);
    width: 100%;
    text-align: center;
}

.alert-success {
    border: 2px solid rgb(138, 197, 134);
    background-color: #eaffeb;
    padding: 6px;
    margin-bottom: 12px;
    border-radius: 8px;
    display: flex;
    width: 100%;
}

.alert-success-text {
    color: rgb(120, 177, 109);
    width: 100%;
    text-align: center;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media(max-width:950px) {
    main {
        background: unset;
        border: none;
    }

    .form-label {
        background: rgb(228 229 237);
    }
}