* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html,
body {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f4f8;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.login_card {
    width: 380px;
    max-width: 90%;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 32px 30px 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login_card .topic {
    font-size: 28px;
    font-weight: 700;
    color: #2c5eff;
    text-align: center;
    margin-bottom: 20px;
}

.login_card .topicText {
    width: 100%;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    text-align: left;
    margin-bottom: 5px;
    padding-left: 2px;
}

.login_input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    background-color: #fcfdff;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 15px;
}

.login_input:focus {
    border-color: #2c5eff;
    box-shadow: 0 0 0 3px rgba(44, 94, 255, 0.2);
}

.password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.password-wrapper .login_input {
    margin-bottom: 0;
    padding-right: 45px;
}

.show-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 18px;
    transition: color 0.2s ease;
}

.show-password:hover {
    color: #333;
}

.modal-description {
    font-size: 14px;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 20px;
}

.password-wrapper .modal-input {
    margin-bottom: 0;
    padding-right: 45px;
}

.password-wrapper .show-password {
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 18px;
    transition: color 0.2s ease;
}

.password-wrapper .show-password:hover {
    color: #333;
}


#compText {
    padding: 0 10px;
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 10px;
    margin-bottom: 20px;
}

#compTerms {
    padding: 0 10px;
    text-align: center;
    color: #7f8c8d;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 30px;
    margin-bottom: 10px;
}

#compLink {
    text-align: center;
    font-size: 11px;
    line-height: 1.5;
    color: #0b7e86;
    white-space: nowrap;
}

.login_actions {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.confirm-btn {
    background-color: #2c5eff;
    width: 100%;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(44, 94, 255, 0.3);
}

.confirm-btn:hover {
    background-color: #1a4cd8;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(44, 94, 255, 0.4);
}

.confirm-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(44, 94, 255, 0.3);
}

.cancel-btn.text-button {
    background: none;
    width: fit-content;
    color: #2c5eff;
    border: none;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.cancel-btn.text-button:hover {
    color: #1a4cd8;
    text-decoration: underline;
}

.loading {
    background-color: #8888886c;
    width: 100%;
    height: 100%;
    z-index: 1000000000000000000000;
    position: absolute;
    display: none;
    align-items: center;
    justify-content: center;
}

.loading_logo {
    background-color: transparent;
    width: 50px;
    height: 50px;
    background-image: url(../icons/loading.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    animation: spin 0.7s linear infinite;
}

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

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

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-backdrop.show {
    display: flex;
    opacity: 1;
}

.modal-box {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    animation: fadeInModal 0.3s ease-in-out;
    transform: translateY(-20px);
    opacity: 0;
}

.modal-backdrop.show .modal-box {
    transform: translateY(0);
    opacity: 1;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c5eff;
    text-align: center;
    margin-bottom: 20px;
}

.modal-label {
    font-size: 15px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
    text-align: left;
    padding-left: 2px;
}

.modal-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #dcdfe6;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.modal-input:focus {
    border-color: #2c5eff;
    box-shadow: 0 0 0 3px rgba(44, 94, 255, 0.2);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.confirm-btn-new {
    background-color: #2c5eff;
    color: #fff;
    box-shadow: 0 4px 10px rgba(44, 94, 255, 0.3);
}

.confirm-btn-new:hover {
    background-color: #1a4cd8;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(44, 94, 255, 0.4);
}

.confirm-btn-new:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(44, 94, 255, 0.3);
}

.cancel-btn-new {
    background-color: #e0e6ec;
    color: #333;
}

.cancel-btn-new:hover {
    background-color: #d1d9e0;
    transform: translateY(-1px);
}

.cancel-btn-new:active {
    transform: translateY(0);
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 12px 25px;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(20px);
    z-index: 2000;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.success-message {
    background-color: #4CAF50;
}

.error-message {
    background-color: #f44336;
}

.toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}